react-native-reanimated 2.3.0-beta.2 → 2.3.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.
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +12 -3
- package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +13 -0
- package/Common/cpp/Registries/EventHandlerRegistry.cpp +2 -2
- package/Common/cpp/Registries/MapperRegistry.cpp +5 -5
- package/Common/cpp/SharedItems/FrozenObject.cpp +1 -3
- package/Common/cpp/SharedItems/ShareableValue.cpp +8 -10
- package/Common/cpp/Tools/FeaturesConfig.cpp +5 -0
- package/Common/cpp/Tools/JSIStoreValueUser.cpp +8 -8
- package/Common/cpp/Tools/Mapper.cpp +1 -1
- package/Common/cpp/Tools/RuntimeDecorator.cpp +40 -4
- package/Common/cpp/Tools/WorkletEventHandler.cpp +3 -1
- package/Common/cpp/headers/NativeModules/NativeReanimatedModule.h +5 -0
- package/Common/cpp/headers/NativeModules/NativeReanimatedModuleSpec.h +6 -1
- package/Common/cpp/headers/Registries/EventHandlerRegistry.h +1 -0
- package/Common/cpp/headers/Registries/MapperRegistry.h +1 -0
- package/Common/cpp/headers/SharedItems/FrozenObject.h +4 -0
- package/Common/cpp/headers/SharedItems/HostFunctionHandler.h +2 -0
- package/Common/cpp/headers/SharedItems/MutableValue.h +2 -0
- package/Common/cpp/headers/SharedItems/MutableValueSetterProxy.h +3 -1
- package/Common/cpp/headers/SharedItems/RemoteObject.h +4 -1
- package/Common/cpp/headers/SharedItems/ShareableValue.h +2 -0
- package/Common/cpp/headers/SharedItems/SharedParent.h +9 -9
- package/Common/cpp/headers/SharedItems/ValueWrapper.h +32 -28
- package/Common/cpp/headers/SpecTools/ErrorHandler.h +1 -0
- package/Common/cpp/headers/Tools/FeaturesConfig.h +19 -0
- package/Common/cpp/headers/Tools/JSIStoreValueUser.h +2 -5
- package/Common/cpp/headers/Tools/Mapper.h +2 -0
- package/Common/cpp/headers/Tools/PlatformDepMethodsHolder.h +5 -0
- package/Common/cpp/headers/Tools/ReanimatedHiddenHeaders.h +1 -5
- package/Common/cpp/headers/Tools/RuntimeDecorator.h +10 -7
- package/Common/cpp/headers/Tools/Scheduler.h +2 -0
- package/Common/cpp/headers/Tools/WorkletEventHandler.h +2 -1
- package/Common/cpp/hidden_headers/Logger.h +2 -2
- package/Common/cpp/hidden_headers/LoggerInterface.h +1 -1
- package/README.md +1 -1
- package/RNReanimated.podspec +21 -3
- package/android/build.gradle +33 -13
- package/android/expo/linking.gradle +46 -0
- package/android/expo/src/main/java/com/swmansion/reanimated/EXReanimatedAdapter.java +12 -0
- package/android/expo/src/main/java/expo/modules/adapters/reanimated/EXReanimatedPackage.java +26 -0
- package/android/react-native-reanimated-63-hermes.aar +0 -0
- package/android/react-native-reanimated-63-jsc.aar +0 -0
- package/android/react-native-reanimated-64-hermes.aar +0 -0
- package/android/react-native-reanimated-64-jsc.aar +0 -0
- package/android/react-native-reanimated-65-hermes.aar +0 -0
- package/android/react-native-reanimated-65-jsc.aar +0 -0
- package/android/react-native-reanimated-66-hermes.aar +0 -0
- package/android/react-native-reanimated-66-jsc.aar +0 -0
- package/android/react-native-reanimated-67-hermes.aar +0 -0
- package/android/react-native-reanimated-67-jsc.aar +0 -0
- package/expo-module.config.json +3 -0
- package/ios/LayoutReanimation/REAAnimationsManager.m +65 -19
- package/ios/LayoutReanimation/REAUIManager.mm +101 -61
- package/ios/Nodes/REAPropsNode.m +1 -1
- package/ios/REAEventDispatcher.m +1 -1
- package/ios/REAModule.h +0 -2
- package/ios/REAModule.m +0 -3
- package/ios/REANodesManager.m +1 -0
- package/ios/RNGestureHandlerStateManager.h +5 -0
- package/ios/native/NativeMethods.h +5 -0
- package/ios/native/NativeMethods.mm +14 -6
- package/ios/native/NativeProxy.h +1 -0
- package/ios/native/NativeProxy.mm +84 -63
- package/ios/native/REAIOSErrorHandler.mm +19 -15
- package/ios/native/REAIOSLogger.mm +10 -6
- package/ios/native/REAIOSScheduler.mm +17 -10
- package/ios/native/REAInitializer.mm +39 -37
- package/ios/native/UIResponder+Reanimated.mm +2 -2
- package/lib/Animated.js +11 -5
- package/lib/ConfigHelper.js +121 -138
- package/lib/ReanimatedEventEmitter.js +0 -1
- package/lib/ReanimatedModule.js +0 -1
- package/lib/ReanimatedModule.macos.js +0 -1
- package/lib/ReanimatedModule.native.js +5 -6
- package/lib/ReanimatedModule.windows.js +0 -1
- package/lib/ReanimatedModuleCompat.js +64 -35
- package/lib/createAnimatedComponent.js +469 -499
- package/lib/index.js +11 -5
- package/lib/reanimated1/core/Core.test.js +1 -1
- package/lib/reanimated2/NativeMethods.js +7 -0
- package/lib/reanimated2/NativeReanimated/NativeReanimated.js +3 -0
- package/lib/reanimated2/PropAdapters.js +0 -1
- package/lib/reanimated2/UpdateProps.js +1 -1
- package/lib/reanimated2/ViewDescriptorsSet.js +4 -2
- package/lib/reanimated2/animation/spring.js +2 -0
- package/lib/reanimated2/animation/styleAnimation.js +5 -1
- package/lib/reanimated2/animation/util.js +23 -0
- package/lib/reanimated2/component/FlatList.js +30 -0
- package/lib/reanimated2/component/WrappedComponents.js +9 -0
- package/lib/reanimated2/component/index.js +4 -0
- package/lib/reanimated2/core.js +34 -6
- package/lib/reanimated2/globals.d.ts +8 -0
- package/lib/reanimated2/js-reanimated/JSReanimated.js +4 -0
- package/lib/reanimated2/js-reanimated/Mapper.js +4 -3
- package/lib/reanimated2/js-reanimated/MapperRegistry.js +3 -6
- package/lib/reanimated2/js-reanimated/MutableValue.js +0 -2
- package/lib/reanimated2/js-reanimated/index.js +10 -8
- package/lib/reanimated2/layoutReanimation/LayoutAnimationRepository.js +14 -5
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Default.js +14 -14
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.js +8 -8
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +16 -16
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.js +16 -16
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +4 -4
- package/lib/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js +20 -8
- package/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +3 -3
- package/lib/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js +8 -8
- package/lib/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js +10 -10
- package/lib/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js +8 -8
- package/lib/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js +8 -8
- package/lib/reanimated2/mock.js +3 -1
- package/lib/setAndForwardRef.js +14 -48
- package/mock.js +1 -1
- package/package.json +27 -23
- package/plugin.js +111 -110
- package/react-native-reanimated.d.ts +56 -27
- package/src/Animated.js +11 -5
- package/src/{ConfigHelper.js → ConfigHelper.ts} +15 -7
- package/src/{ReanimatedEventEmitter.js → ReanimatedEventEmitter.ts} +0 -0
- package/src/{ReanimatedModule.js → ReanimatedModule.macos.ts} +0 -0
- package/src/{ReanimatedModule.native.js → ReanimatedModule.native.ts} +0 -0
- package/src/{ReanimatedModule.macos.js → ReanimatedModule.ts} +0 -0
- package/src/{ReanimatedModule.windows.js → ReanimatedModule.windows.ts} +0 -0
- package/src/ReanimatedModuleCompat.ts +51 -0
- package/src/{createAnimatedComponent.js → createAnimatedComponent.tsx} +278 -124
- package/src/reanimated1/core/Core.test.js +1 -1
- package/src/reanimated2/NativeMethods.ts +13 -1
- package/src/reanimated2/NativeReanimated/NativeReanimated.ts +5 -11
- package/src/reanimated2/PropAdapters.ts +0 -1
- package/src/reanimated2/UpdateProps.ts +1 -1
- package/src/reanimated2/ViewDescriptorsSet.ts +6 -2
- package/src/reanimated2/animation/commonTypes.ts +4 -4
- package/src/reanimated2/animation/decay.ts +2 -2
- package/src/reanimated2/animation/delay.ts +3 -3
- package/src/reanimated2/animation/index.ts +7 -7
- package/src/reanimated2/animation/repeat.ts +4 -4
- package/src/reanimated2/animation/sequence.ts +2 -2
- package/src/reanimated2/animation/spring.ts +6 -5
- package/src/reanimated2/animation/styleAnimation.ts +24 -12
- package/src/reanimated2/animation/timing.ts +5 -5
- package/src/reanimated2/animation/util.ts +45 -6
- package/src/reanimated2/component/FlatList.tsx +44 -0
- package/src/reanimated2/component/WrappedComponents.ts +11 -0
- package/src/reanimated2/component/index.ts +9 -0
- package/src/reanimated2/core.ts +62 -17
- package/src/reanimated2/globals.d.ts +8 -0
- package/src/reanimated2/hook/useAnimatedStyle.ts +2 -2
- package/src/reanimated2/js-reanimated/JSReanimated.ts +15 -26
- package/src/reanimated2/js-reanimated/Mapper.ts +22 -9
- package/src/reanimated2/js-reanimated/MapperRegistry.ts +22 -19
- package/src/reanimated2/js-reanimated/MutableValue.ts +11 -11
- package/src/reanimated2/js-reanimated/index.ts +31 -14
- package/src/reanimated2/layoutReanimation/{LayoutAnimationRepository.tsx → LayoutAnimationRepository.ts} +18 -5
- package/src/reanimated2/layoutReanimation/animationBuilder/commonTypes.ts +39 -20
- package/src/reanimated2/layoutReanimation/animationBuilder/index.ts +5 -1
- package/src/reanimated2/layoutReanimation/defaultAnimations/Default.ts +21 -15
- package/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +29 -24
- package/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +61 -34
- package/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +49 -34
- package/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +17 -12
- package/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +20 -8
- package/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +9 -9
- package/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +8 -8
- package/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +20 -14
- package/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +14 -8
- package/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +24 -12
- package/src/reanimated2/mock.ts +3 -1
- package/src/{setAndForwardRef.js → setAndForwardRef.ts} +12 -2
- package/src/ReanimatedModuleCompat.js +0 -37
package/lib/ConfigHelper.js
CHANGED
|
@@ -1,163 +1,146 @@
|
|
|
1
1
|
import ReanimatedModule from './ReanimatedModule';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Styles allowed to be direcly updated in UI thread
|
|
5
4
|
*/
|
|
6
5
|
let UI_THREAD_PROPS_WHITELIST = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
opacity: true,
|
|
7
|
+
transform: true,
|
|
8
|
+
/* colors */
|
|
9
|
+
backgroundColor: true,
|
|
10
|
+
borderRightColor: true,
|
|
11
|
+
borderBottomColor: true,
|
|
12
|
+
borderColor: true,
|
|
13
|
+
borderEndColor: true,
|
|
14
|
+
borderLeftColor: true,
|
|
15
|
+
borderStartColor: true,
|
|
16
|
+
borderTopColor: true,
|
|
17
|
+
/* ios styles */
|
|
18
|
+
shadowOpacity: true,
|
|
19
|
+
shadowRadius: true,
|
|
20
|
+
/* legacy android transform properties */
|
|
21
|
+
scaleX: true,
|
|
22
|
+
scaleY: true,
|
|
23
|
+
translateX: true,
|
|
24
|
+
translateY: true,
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
/**
|
|
29
27
|
* Whitelist of view props that can be updated in native thread via UIManagerModule
|
|
30
28
|
*/
|
|
31
29
|
let NATIVE_THREAD_PROPS_WHITELIST = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
30
|
+
borderBottomWidth: true,
|
|
31
|
+
borderEndWidth: true,
|
|
32
|
+
borderLeftWidth: true,
|
|
33
|
+
borderRightWidth: true,
|
|
34
|
+
borderStartWidth: true,
|
|
35
|
+
borderTopWidth: true,
|
|
36
|
+
borderWidth: true,
|
|
37
|
+
bottom: true,
|
|
38
|
+
flex: true,
|
|
39
|
+
flexGrow: true,
|
|
40
|
+
flexShrink: true,
|
|
41
|
+
height: true,
|
|
42
|
+
left: true,
|
|
43
|
+
margin: true,
|
|
44
|
+
marginBottom: true,
|
|
45
|
+
marginEnd: true,
|
|
46
|
+
marginHorizontal: true,
|
|
47
|
+
marginLeft: true,
|
|
48
|
+
marginRight: true,
|
|
49
|
+
marginStart: true,
|
|
50
|
+
marginTop: true,
|
|
51
|
+
marginVertical: true,
|
|
52
|
+
maxHeight: true,
|
|
53
|
+
maxWidth: true,
|
|
54
|
+
minHeight: true,
|
|
55
|
+
minWidth: true,
|
|
56
|
+
padding: true,
|
|
57
|
+
paddingBottom: true,
|
|
58
|
+
paddingEnd: true,
|
|
59
|
+
paddingHorizontal: true,
|
|
60
|
+
paddingLeft: true,
|
|
61
|
+
paddingRight: true,
|
|
62
|
+
paddingStart: true,
|
|
63
|
+
paddingTop: true,
|
|
64
|
+
paddingVertical: true,
|
|
65
|
+
right: true,
|
|
66
|
+
start: true,
|
|
67
|
+
top: true,
|
|
68
|
+
width: true,
|
|
69
|
+
zIndex: true,
|
|
70
|
+
borderBottomEndRadius: true,
|
|
71
|
+
borderBottomLeftRadius: true,
|
|
72
|
+
borderBottomRightRadius: true,
|
|
73
|
+
borderBottomStartRadius: true,
|
|
74
|
+
borderRadius: true,
|
|
75
|
+
borderTopEndRadius: true,
|
|
76
|
+
borderTopLeftRadius: true,
|
|
77
|
+
borderTopRightRadius: true,
|
|
78
|
+
borderTopStartRadius: true,
|
|
79
|
+
opacity: true,
|
|
80
|
+
elevation: true,
|
|
81
|
+
fontSize: true,
|
|
82
|
+
lineHeight: true,
|
|
83
|
+
textShadowRadius: true,
|
|
84
|
+
letterSpacing: true,
|
|
85
|
+
/* strings */
|
|
86
|
+
display: true,
|
|
87
|
+
backfaceVisibility: true,
|
|
88
|
+
overflow: true,
|
|
89
|
+
resizeMode: true,
|
|
90
|
+
fontStyle: true,
|
|
91
|
+
fontWeight: true,
|
|
92
|
+
textAlign: true,
|
|
93
|
+
textDecorationLine: true,
|
|
94
|
+
fontFamily: true,
|
|
95
|
+
textAlignVertical: true,
|
|
96
|
+
fontVariant: true,
|
|
97
|
+
textDecorationStyle: true,
|
|
98
|
+
textTransform: true,
|
|
99
|
+
writingDirection: true,
|
|
100
|
+
/* text color */
|
|
101
|
+
color: true,
|
|
102
|
+
tintColor: true,
|
|
103
|
+
shadowColor: true,
|
|
104
|
+
placeholderTextColor: true,
|
|
107
105
|
};
|
|
108
|
-
|
|
109
106
|
function configureProps() {
|
|
110
|
-
|
|
111
|
-
Object.keys(NATIVE_THREAD_PROPS_WHITELIST),
|
|
112
|
-
Object.keys(UI_THREAD_PROPS_WHITELIST)
|
|
113
|
-
);
|
|
107
|
+
ReanimatedModule.configureProps(Object.keys(NATIVE_THREAD_PROPS_WHITELIST), Object.keys(UI_THREAD_PROPS_WHITELIST));
|
|
114
108
|
}
|
|
115
|
-
|
|
116
109
|
export function addWhitelistedNativeProps(props) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (oldSize !== Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length) {
|
|
123
|
-
configureProps();
|
|
124
|
-
}
|
|
110
|
+
const oldSize = Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length;
|
|
111
|
+
NATIVE_THREAD_PROPS_WHITELIST = Object.assign(Object.assign({}, NATIVE_THREAD_PROPS_WHITELIST), props);
|
|
112
|
+
if (oldSize !== Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length) {
|
|
113
|
+
configureProps();
|
|
114
|
+
}
|
|
125
115
|
}
|
|
126
|
-
|
|
127
116
|
export function addWhitelistedUIProps(props) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
117
|
+
const oldSize = Object.keys(UI_THREAD_PROPS_WHITELIST).length;
|
|
118
|
+
UI_THREAD_PROPS_WHITELIST = Object.assign(Object.assign({}, UI_THREAD_PROPS_WHITELIST), props);
|
|
119
|
+
if (oldSize !== Object.keys(UI_THREAD_PROPS_WHITELIST).length) {
|
|
120
|
+
configureProps();
|
|
121
|
+
}
|
|
133
122
|
}
|
|
134
|
-
|
|
135
123
|
const PROCESSED_VIEW_NAMES = new Set();
|
|
136
124
|
/**
|
|
137
125
|
* updates UI props whitelist for given view host instance
|
|
138
126
|
* this will work just once for every view name
|
|
139
127
|
*/
|
|
140
128
|
export function adaptViewConfig(viewConfig) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
propsToAdd
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
addWhitelistedUIProps(propsToAdd);
|
|
158
|
-
|
|
159
|
-
PROCESSED_VIEW_NAMES.add(viewName);
|
|
160
|
-
}
|
|
129
|
+
const viewName = viewConfig.uiViewClassName;
|
|
130
|
+
const props = viewConfig.validAttributes;
|
|
131
|
+
// update whitelist of UI props for this view name only once
|
|
132
|
+
if (!PROCESSED_VIEW_NAMES.has(viewName)) {
|
|
133
|
+
const propsToAdd = {};
|
|
134
|
+
Object.keys(props).forEach((key) => {
|
|
135
|
+
// we don't want to add native props as they affect layout
|
|
136
|
+
// we also skip props which repeat here
|
|
137
|
+
if (!(key in NATIVE_THREAD_PROPS_WHITELIST) &&
|
|
138
|
+
!(key in UI_THREAD_PROPS_WHITELIST)) {
|
|
139
|
+
propsToAdd[key] = true;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
addWhitelistedUIProps(propsToAdd);
|
|
143
|
+
PROCESSED_VIEW_NAMES.add(viewName);
|
|
144
|
+
}
|
|
161
145
|
}
|
|
162
|
-
|
|
163
146
|
configureProps();
|
package/lib/ReanimatedModule.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { NativeModules } from 'react-native';
|
|
2
2
|
import ReanimatedModuleCompat from './ReanimatedModuleCompat';
|
|
3
3
|
import { nativeShouldBeMock } from './reanimated2/PlatformChecker';
|
|
4
|
-
|
|
5
4
|
let exportedModule;
|
|
6
5
|
if (nativeShouldBeMock()) {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
exportedModule = ReanimatedModuleCompat;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
const { ReanimatedModule } = NativeModules;
|
|
10
|
+
exportedModule = ReanimatedModule;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
12
|
export default exportedModule;
|
|
@@ -1,37 +1,66 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
disconnectNodeFromView() {
|
|
12
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
// noop
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
attachEvent(_viewTag, _eventName, _nodeID) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
// noop
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
detachEvent(_viewTag, _eventName, _nodeID) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
// noop
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
createNode(_nodeID, _config) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
// noop
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
dropNode(_nodeID) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
// noop
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
configureProps(_nativeProps, _uiProps) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
// noop
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
disconnectNodes() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
// noop
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
addListener() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
// noop
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
removeListeners() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
// noop
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
removeAllListeners() {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
// noop
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
animateNextTransition() {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
console.warn('Reanimated: animateNextTransition is unimplemented on current platform');
|
|
64
|
+
});
|
|
65
|
+
},
|
|
37
66
|
};
|