react-native-reanimated 2.7.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/Common/cpp/Tools/RuntimeDecorator.cpp +17 -11
  2. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  4. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  5. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  6. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  8. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  10. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/android/.gradle/checksums/checksums.lock +0 -0
  12. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  13. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  14. package/android/CMakeLists.txt +21 -8
  15. package/android/build.gradle +23 -8
  16. package/android/react-native-reanimated-65-hermes.aar +0 -0
  17. package/android/react-native-reanimated-65-jsc.aar +0 -0
  18. package/android/react-native-reanimated-66-hermes.aar +0 -0
  19. package/android/react-native-reanimated-66-jsc.aar +0 -0
  20. package/android/react-native-reanimated-67-hermes.aar +0 -0
  21. package/android/react-native-reanimated-67-jsc.aar +0 -0
  22. package/android/react-native-reanimated-68-hermes.aar +0 -0
  23. package/android/react-native-reanimated-68-jsc.aar +0 -0
  24. package/android/react-native-reanimated-69-hermes.aar +0 -0
  25. package/android/react-native-reanimated-69-jsc.aar +0 -0
  26. package/android/rnVersionPatch/69/.gitkeep +0 -0
  27. package/android/src/main/cpp/NativeProxy.cpp +35 -14
  28. package/android/src/main/cpp/headers/NativeProxy.h +2 -0
  29. package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorListener.java +24 -1
  30. package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorType.java +7 -5
  31. package/ios/native/NativeProxy.mm +6 -2
  32. package/ios/native/REAInitializer.mm +11 -1
  33. package/ios/sensor/ReanimatedSensor.m +2 -2
  34. package/lib/Animated.js +8 -30
  35. package/lib/index.js +5 -30
  36. package/lib/reanimated2/NativeReanimated/NativeReanimated.js +1 -1
  37. package/lib/reanimated2/animation/sequence.js +0 -3
  38. package/lib/reanimated2/component/FlatList.js +3 -3
  39. package/lib/reanimated2/component/Image.js +4 -0
  40. package/lib/reanimated2/component/ScrollView.js +4 -0
  41. package/lib/reanimated2/component/Text.js +4 -0
  42. package/lib/reanimated2/component/View.js +4 -0
  43. package/lib/reanimated2/core.js +0 -5
  44. package/lib/reanimated2/hook/utils.js +0 -5
  45. package/lib/reanimated2/js-reanimated/global.js +25 -0
  46. package/lib/reanimated2/js-reanimated/index.js +0 -24
  47. package/lib/reanimated2/mock.js +6 -0
  48. package/lib/types/lib/Animated.d.ts +8 -0
  49. package/lib/types/lib/index.d.ts +4 -0
  50. package/lib/types/lib/reanimated2/component/Image.d.ts +3 -0
  51. package/lib/types/lib/reanimated2/component/ScrollView.d.ts +3 -0
  52. package/lib/types/lib/reanimated2/component/Text.d.ts +3 -0
  53. package/lib/types/lib/reanimated2/component/View.d.ts +3 -0
  54. package/lib/types/lib/reanimated2/hook/useAnimatedSensor.d.ts +1 -3
  55. package/lib/types/lib/reanimated2/js-reanimated/global.d.ts +1 -0
  56. package/lib/types/lib/reanimated2/mock.d.ts +6 -0
  57. package/package.json +15 -9
  58. package/plugin.js +36 -21
  59. package/react-native-reanimated.d.ts +16 -7
  60. package/src/Animated.ts +13 -0
  61. package/src/index.ts +7 -0
  62. package/src/reanimated2/NativeReanimated/NativeReanimated.ts +1 -1
  63. package/src/reanimated2/animation/sequence.ts +0 -5
  64. package/src/reanimated2/component/FlatList.tsx +3 -6
  65. package/src/reanimated2/component/Image.ts +6 -0
  66. package/src/reanimated2/component/ScrollView.ts +6 -0
  67. package/src/reanimated2/component/Text.ts +6 -0
  68. package/src/reanimated2/component/View.ts +6 -0
  69. package/src/reanimated2/core.ts +0 -5
  70. package/src/reanimated2/hook/useAnimatedSensor.ts +1 -3
  71. package/src/reanimated2/hook/utils.ts +0 -6
  72. package/src/reanimated2/js-reanimated/global.ts +33 -0
  73. package/src/reanimated2/js-reanimated/index.ts +0 -31
  74. package/src/reanimated2/mock.ts +6 -0
  75. package/android/react-native-reanimated-64-hermes.aar +0 -0
  76. package/android/react-native-reanimated-64-jsc.aar +0 -0
  77. package/lib/reanimated2/component/WrappedComponents.js +0 -9
  78. package/lib/reanimated2/component/index.js +0 -4
  79. package/lib/types/lib/reanimated2/component/WrappedComponents.d.ts +0 -8
  80. package/lib/types/lib/reanimated2/component/index.d.ts +0 -9
  81. package/src/Animated.js +0 -31
  82. package/src/reanimated2/component/WrappedComponents.ts +0 -11
  83. package/src/reanimated2/component/index.ts +0 -9
@@ -1,4 +0,0 @@
1
- import ReanimatedFlatlist from './FlatList';
2
- import WrappedComponents from './WrappedComponents';
3
- const ReanimatedComponents = Object.assign(Object.assign({}, WrappedComponents), { FlatList: ReanimatedFlatlist });
4
- export default ReanimatedComponents;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const WrappedComponents: {
3
- View: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
4
- Text: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
5
- Image: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
6
- ScrollView: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
7
- };
8
- export default WrappedComponents;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ReanimatedComponents: {
3
- FlatList: import("react").FC<import("./FlatList").ReanimatedFlatlistProps<any>>;
4
- View: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
5
- Text: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
6
- Image: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
7
- ScrollView: import("react").ComponentType<import("../../createAnimatedComponent").AnimatedComponentProps<import("../../createAnimatedComponent").InitialComponentProps>>;
8
- };
9
- export default ReanimatedComponents;
package/src/Animated.js DELETED
@@ -1,31 +0,0 @@
1
- import { LogBox } from 'react-native';
2
- import createAnimatedComponent from './createAnimatedComponent';
3
- import {
4
- addWhitelistedNativeProps,
5
- addWhitelistedUIProps,
6
- } from './ConfigHelper';
7
- import * as reanimated1 from './reanimated1';
8
- import ReanimatedComponents from './reanimated2/component';
9
-
10
- const Animated = {
11
- // components
12
- ...ReanimatedComponents,
13
- createAnimatedComponent,
14
- // configuration
15
- addWhitelistedNativeProps,
16
- addWhitelistedUIProps,
17
- // reanimated 1
18
- ...reanimated1,
19
- };
20
-
21
- export * from './reanimated2';
22
- export * from './reanimated1';
23
- export default Animated;
24
-
25
- // I think we can ignore this message as long as Gesture Handler doesn't
26
- // try to load the Reanimated module. I figured it should be here instead of
27
- // RNGH because this prevents the message from being displayed for all
28
- // versions of RNGH.
29
- LogBox.ignoreLogs([
30
- 'RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks',
31
- ]);
@@ -1,11 +0,0 @@
1
- import { Image, ScrollView, Text, View } from 'react-native';
2
- import createAnimatedComponent from '../../createAnimatedComponent';
3
-
4
- const WrappedComponents = {
5
- View: createAnimatedComponent(View),
6
- Text: createAnimatedComponent(Text as any),
7
- Image: createAnimatedComponent(Image as any),
8
- ScrollView: createAnimatedComponent(ScrollView),
9
- };
10
-
11
- export default WrappedComponents;
@@ -1,9 +0,0 @@
1
- import ReanimatedFlatlist from './FlatList';
2
- import WrappedComponents from './WrappedComponents';
3
-
4
- const ReanimatedComponents = {
5
- ...WrappedComponents,
6
- FlatList: ReanimatedFlatlist,
7
- };
8
-
9
- export default ReanimatedComponents;