Skip to content

Commit

Permalink
fix: global.__reanimatedWorkletInit is not a function
Browse files Browse the repository at this point in the history
fix #159, fix #182
  • Loading branch information
dohooo committed Jun 4, 2022
1 parent f88ab6a commit 591f0d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (!('__reanimatedWorkletInit' in global)) {
Object.assign(global, { __reanimatedWorkletInit: () => {} });
}

export type { TCarouselProps, ICarouselInstance } from './types';
import Carousel from './Carousel';

Expand Down

0 comments on commit 591f0d8

Please sign in to comment.