Skip to content

Commit

Permalink
Remove unused _REANIMATED_VERSION_BABEL_PLUGIN (#5663)
Browse files Browse the repository at this point in the history
As in the title.

🚀

Requires #5667.
  • Loading branch information
tjzel committed Feb 14, 2024
1 parent a6230e9 commit 4b92e08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions app/src/examples/WithoutBabelPluginExample.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Animated, {
isWorklet,
useAnimatedStyle,
useSharedValue,
withSpring,
Expand All @@ -14,9 +15,10 @@ import { StyleSheet, Text, View } from 'react-native';
enableExperimentalWebImplementation(true);

function isBabelPluginEnabled() {
'inject Reanimated Babel plugin version';
// @ts-ignore
return global._REANIMATED_VERSION_BABEL_PLUGIN !== undefined;
function worklet() {
'worklet';
}
return isWorklet(worklet);
}

export default function WithoutBabelPluginExample() {
Expand Down
1 change: 0 additions & 1 deletion src/reanimated2/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ declare global {
var _IS_FABRIC: boolean | undefined;
var _REANIMATED_VERSION_CPP: string | undefined;
var _REANIMATED_VERSION_JS: string | undefined;
var _REANIMATED_VERSION_BABEL_PLUGIN: string | undefined;
var __reanimatedModuleProxy: NativeReanimatedModule | undefined;
var __callGuardDEV: typeof callGuardDEV | undefined;
var evalWithSourceMap:
Expand Down

0 comments on commit 4b92e08

Please sign in to comment.