ReAnimated -> Reanimated
Fixes a small typo by request ghstack-source-id: 00889150a952308f00d89472c864726222e835d3 Pull Request resolved: https://github.com/facebook/react-forget/pull/2952
Lauren Tan committed
May 11, 2024 at 00:19 UTC
c58142ba35566536999cddfe83f241918856b1d6
4 files changed
+6
-6
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Reanimated.ts
+1
-1
@@ -28,7 +28,7 @@ export function injectReanimatedFlag(options: PluginOptions): PluginOptions {
28
...options,
29
environment: {
30
...options.environment,
31
- enableCustomTypeDefinitionForReAnimated: true,
31
+ enableCustomTypeDefinitionForReanimated: true,
32
},
33
};
34
}
compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts
+2
-2
@@ -349,7 +349,7 @@ const EnvironmentConfigSchema = z.object({
349
* definitions for reanimated library to make it's Babel plugin work
350
* with the compiler.
351
*/
352
- enableCustomTypeDefinitionForReAnimated: z.boolean().default(false),
352
+ enableCustomTypeDefinitionForReanimated: z.boolean().default(false),
353
354
/**
355
* If specified, this value is used as a pattern for determing which global values should be
@@ -480,7 +480,7 @@ export class Environment {
480
);
481
}
482
483
- if (config.enableCustomTypeDefinitionForReAnimated) {
483
+ if (config.enableCustomTypeDefinitionForReanimated) {
484
installReAnimatedTypes(this.#globals, this.#shapes);
485
}
486
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reanimated-no-memo-arg.expect.md
+2
-2
@@ -2,7 +2,7 @@
2
## Input
3
4
```javascript
5
-// @enableCustomTypeDefinitionForReAnimated
5
+// @enableCustomTypeDefinitionForReanimated
6
function Component() {
7
const radius = useSharedValue(50);
8
@@ -37,7 +37,7 @@ export const FIXTURE_ENTRYPOINT = {
37
## Code
38
39
```javascript
40
-import { c as useMemoCache } from "react/compiler-runtime"; // @enableCustomTypeDefinitionForReAnimated
40
+import { c as useMemoCache } from "react/compiler-runtime"; // @enableCustomTypeDefinitionForReanimated
41
function Component() {
42
const $ = useMemoCache(2);
43
const radius = useSharedValue(50);
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reanimated-no-memo-arg.js
+1
-1
@@ -1,4 +1,4 @@
1
-// @enableCustomTypeDefinitionForReAnimated
1
+// @enableCustomTypeDefinitionForReanimated
2
function Component() {
3
const radius = useSharedValue(50);
4