react-native-reanimated 2.9.1 → 2.11.0
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/AnimatedSensor/AnimatedSensorModule.cpp +7 -4
- package/Common/cpp/{headers/AnimatedSensor → AnimatedSensor}/AnimatedSensorModule.h +0 -0
- package/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +2 -0
- package/Common/cpp/{headers/LayoutAnimations → LayoutAnimations}/LayoutAnimationsProxy.h +0 -0
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +40 -0
- package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModule.h +13 -0
- package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +25 -0
- package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModuleSpec.h +9 -1
- package/Common/cpp/{headers/Registries → Registries}/EventHandlerRegistry.h +0 -0
- package/Common/cpp/Registries/MapperRegistry.cpp +3 -1
- package/Common/cpp/{headers/Registries → Registries}/MapperRegistry.h +0 -0
- package/Common/cpp/Registries/WorkletsCache.cpp +3 -0
- package/Common/cpp/{headers/Registries → Registries}/WorkletsCache.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/FrozenObject.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/HostFunctionHandler.h +0 -0
- package/Common/cpp/SharedItems/MutableValue.cpp +2 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValue.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValueSetterProxy.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/RemoteObject.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/RuntimeManager.h +0 -0
- package/Common/cpp/SharedItems/ShareableValue.cpp +7 -2
- package/Common/cpp/{headers/SharedItems → SharedItems}/ShareableValue.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/SharedParent.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/ValueWrapper.h +0 -0
- package/Common/cpp/{headers/SpecTools → SpecTools}/ErrorHandler.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/FeaturesConfig.h +0 -0
- package/Common/cpp/Tools/JSIStoreValueUser.cpp +2 -2
- package/Common/cpp/{headers/Tools → Tools}/JSIStoreValueUser.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/Mapper.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/PlatformDepMethodsHolder.h +5 -0
- package/Common/cpp/{headers/Tools → Tools}/ReanimatedHiddenHeaders.h +1 -1
- package/Common/cpp/{headers/Tools → Tools}/RuntimeDecorator.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/Scheduler.h +0 -0
- package/Common/cpp/Tools/SingleInstanceChecker.h +58 -0
- package/Common/cpp/{headers/Tools → Tools}/WorkletEventHandler.h +0 -0
- package/RNReanimated.podspec +18 -58
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/CMakeLists.txt +223 -113
- package/android/build.gradle +480 -195
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- 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/android/react-native-reanimated-68-hermes.aar +0 -0
- package/android/react-native-reanimated-68-jsc.aar +0 -0
- package/android/react-native-reanimated-69-hermes.aar +0 -0
- package/android/react-native-reanimated-69-jsc.aar +0 -0
- package/android/react-native-reanimated-70-hermes.aar +0 -0
- package/android/react-native-reanimated-70-jsc.aar +0 -0
- package/{lib/types/lib/reanimated2/platform-specific/RNRenderer.web.d.ts → android/rnVersionPatch/70/.gitkeep} +0 -0
- package/android/src/main/cpp/AndroidErrorHandler.cpp +3 -4
- package/android/src/main/cpp/{headers/AndroidErrorHandler.h → AndroidErrorHandler.h} +1 -4
- package/android/src/main/cpp/AndroidLogger.cpp +4 -1
- package/android/src/main/cpp/{headers/AndroidLogger.h → AndroidLogger.h} +0 -0
- package/android/src/main/cpp/{headers/AndroidScheduler.h → AndroidScheduler.h} +0 -0
- package/android/src/main/cpp/{headers/JNIHelper.h → JNIHelper.h} +0 -0
- package/android/src/main/cpp/{headers/LayoutAnimations.h → LayoutAnimations.h} +0 -0
- package/android/src/main/cpp/NativeProxy.cpp +60 -28
- package/android/src/main/cpp/{headers/NativeProxy.h → NativeProxy.h} +29 -0
- package/android/src/main/cpp/OnLoad.cpp +1 -0
- package/android/src/main/cpp/{headers/TurboModule.h → TurboModule.h} +0 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +29 -5
- package/android/src/main/java/com/swmansion/reanimated/NodesManager.java +3 -1
- package/android/src/main/java/com/swmansion/reanimated/keyboardObserver/ReanimatedKeyboardEventListener.java +166 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +19 -16
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java +5 -1
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorType.java +1 -1
- package/ios/{REAModule.m → REAModule.mm} +12 -0
- package/ios/REANodesManager.m +31 -8
- package/ios/keyboardObserver/REAKeyboardEventObserver.h +17 -0
- package/ios/keyboardObserver/REAKeyboardEventObserver.m +198 -0
- package/ios/native/NativeProxy.mm +24 -3
- package/ios/native/REAInitializer.h +2 -2
- package/ios/native/REAInitializer.mm +10 -14
- package/ios/native/UIResponder+Reanimated.mm +1 -1
- package/ios/sensor/ReanimatedSensor.m +26 -17
- package/lib/index.js +11 -3
- package/lib/index.web.js +6 -0
- package/lib/reanimated2/Colors.js +1 -1
- package/lib/reanimated2/NativeMethods.js +34 -17
- package/lib/reanimated2/NativeReanimated/NativeReanimated.js +6 -0
- package/lib/reanimated2/animation/util.js +4 -1
- package/lib/reanimated2/commonTypes.js +8 -1
- package/lib/reanimated2/component/FlatList.js +5 -5
- package/lib/reanimated2/core.js +5 -4
- package/lib/reanimated2/frameCallback/FrameCallbackRegistryJS.js +32 -0
- package/lib/reanimated2/frameCallback/FrameCallbackRegistryUI.js +76 -0
- package/lib/reanimated2/globals.d.ts +5 -2
- package/lib/reanimated2/hook/index.js +3 -0
- package/lib/reanimated2/hook/useAnimatedKeyboard.js +31 -0
- package/lib/reanimated2/hook/useAnimatedSensor.js +3 -3
- package/lib/reanimated2/hook/useFrameCallback.js +23 -0
- package/lib/reanimated2/hook/useScrollViewOffset.js +26 -0
- package/lib/reanimated2/jestUtils.js +11 -3
- package/lib/reanimated2/js-reanimated/JSReanimated.js +7 -0
- package/lib/reanimated2/js-reanimated/global.js +33 -22
- package/lib/reanimated2/layoutReanimation/LayoutAnimationRepository.js +1 -1
- package/lib/reanimated2/utils.js +10 -3
- package/lib/types/{lib/Animated.d.ts → Animated.d.ts} +0 -0
- package/lib/types/{lib/ConfigHelper.d.ts → ConfigHelper.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedEventEmitter.d.ts → ReanimatedEventEmitter.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedModule.d.ts → ReanimatedModule.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedModule.macos.d.ts → ReanimatedModule.macos.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedModule.native.d.ts → ReanimatedModule.native.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedModule.windows.d.ts → ReanimatedModule.windows.d.ts} +0 -0
- package/lib/types/{lib/ReanimatedModuleCompat.d.ts → ReanimatedModuleCompat.d.ts} +0 -0
- package/lib/types/{lib/createAnimatedComponent.d.ts → createAnimatedComponent.d.ts} +0 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/{lib/index.d.ts → index.web.d.ts} +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/Bezier.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/Colors.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/Easing.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/NativeMethods.d.ts +3 -10
- package/lib/types/{lib/reanimated2 → reanimated2}/NativeReanimated/NativeReanimated.d.ts +3 -1
- package/lib/types/{lib/reanimated2 → reanimated2}/NativeReanimated/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/PlatformChecker.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/PropAdapters.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/UpdateProps.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/ViewDescriptorsSet.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/WorkletEventHandler.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/__mocks__/MutableValue.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/__mocks__/NativeReanimated.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/commonTypes.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/decay.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/delay.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/repeat.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/sequence.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/spring.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/styleAnimation.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/timing.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/animation/util.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/commonTypes.d.ts +20 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/component/FlatList.d.ts +2 -2
- package/lib/types/{lib/reanimated2 → reanimated2}/component/Image.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/component/ScrollView.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/component/Text.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/component/View.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/core.d.ts +0 -0
- package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryJS.d.ts +8 -0
- package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryUI.d.ts +6 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/Hooks.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/commonTypes.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/index.d.ts +4 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedGestureHandler.d.ts +0 -0
- package/lib/types/reanimated2/hook/useAnimatedKeyboard.d.ts +2 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedReaction.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedRef.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedScrollHandler.d.ts +1 -2
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedSensor.d.ts +1 -1
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useAnimatedStyle.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useDerivedValue.d.ts +0 -0
- package/lib/types/reanimated2/hook/useFrameCallback.d.ts +7 -0
- package/lib/types/reanimated2/hook/useScrollViewOffset.d.ts +4 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/useSharedValue.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/hook/utils.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/interpolateColor.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/interpolation.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/jestUtils.d.ts +1 -1
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/JSReanimated.d.ts +3 -1
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/Mapper.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/MapperRegistry.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/MutableValue.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/commonTypes.d.ts +0 -0
- package/lib/types/reanimated2/js-reanimated/global.d.ts +2 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/js-reanimated/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/LayoutAnimationRepository.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/BaseAnimationBuilder.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/Keyframe.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/commonTypes.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Bounce.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Default.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Fade.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Flip.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Lightspeed.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Pinwheel.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Roll.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Rotate.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Slide.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Stretch.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Zoom.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/CurvedTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/EntryExitTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/FadingTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/JumpingTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/LinearTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/SequencedTransition.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/layoutReanimation/index.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/mock.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/platform-specific/RNRenderer.d.ts +0 -0
- package/lib/types/reanimated2/platform-specific/RNRenderer.web.d.ts +0 -0
- package/lib/types/{lib/reanimated2 → reanimated2}/utils.d.ts +5 -1
- package/lib/types/{lib/setAndForwardRef.d.ts → setAndForwardRef.d.ts} +0 -0
- package/mock.js +1 -0
- package/package.json +8 -8
- package/plugin.js +8 -17
- package/react-native-reanimated.d.ts +67 -12
- package/scripts/reanimated_utils.rb +65 -0
- package/src/index.ts +11 -3
- package/src/index.web.ts +7 -0
- package/src/reanimated2/Colors.ts +1 -1
- package/src/reanimated2/NativeMethods.ts +47 -30
- package/src/reanimated2/NativeReanimated/NativeReanimated.ts +9 -0
- package/src/reanimated2/animation/util.ts +8 -1
- package/src/reanimated2/commonTypes.ts +24 -0
- package/src/reanimated2/component/FlatList.tsx +29 -19
- package/src/reanimated2/core.ts +8 -8
- package/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +40 -0
- package/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +115 -0
- package/src/reanimated2/globals.d.ts +5 -2
- package/src/reanimated2/hook/index.ts +4 -0
- package/src/reanimated2/hook/useAnimatedKeyboard.ts +35 -0
- package/src/reanimated2/hook/useAnimatedScrollHandler.ts +3 -1
- package/src/reanimated2/hook/useAnimatedSensor.ts +5 -5
- package/src/reanimated2/hook/useFrameCallback.ts +40 -0
- package/src/reanimated2/hook/useScrollViewOffset.ts +36 -0
- package/src/reanimated2/jestUtils.ts +11 -3
- package/src/reanimated2/js-reanimated/JSReanimated.ts +16 -1
- package/src/reanimated2/js-reanimated/global.ts +41 -29
- package/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts +1 -1
- package/src/reanimated2/utils.ts +12 -5
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/react-native-reanimated-65-hermes.aar +0 -0
- package/android/react-native-reanimated-65-jsc.aar +0 -0
- package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +0 -8
- package/lib/reanimated2/__mocks__/NativeReanimated.native.js +0 -20
- package/lib/types/lib/reanimated2/__mocks__/NativeReanimated.native.d.ts +0 -13
- package/lib/types/lib/reanimated2/js-reanimated/global.d.ts +0 -1
- package/lib/types/react-native-reanimated-tests.d.ts +0 -1
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
#include "MutableValue.h"
|
|
3
3
|
#include "ValueWrapper.h"
|
|
4
4
|
|
|
5
|
+
#include <memory>
|
|
6
|
+
#include <utility>
|
|
7
|
+
|
|
5
8
|
namespace reanimated {
|
|
6
9
|
|
|
7
10
|
AnimatedSensorModule::AnimatedSensorModule(
|
|
@@ -35,10 +38,10 @@ jsi::Value AnimatedSensorModule::registerSensor(
|
|
|
35
38
|
setter = [&, mutableObject](double newValues[]) {
|
|
36
39
|
jsi::Runtime &runtime = *runtimeManager_->runtime.get();
|
|
37
40
|
jsi::Object value(runtime);
|
|
38
|
-
value.setProperty(runtime, "
|
|
39
|
-
value.setProperty(runtime, "
|
|
40
|
-
value.setProperty(runtime, "
|
|
41
|
-
value.setProperty(runtime, "
|
|
41
|
+
value.setProperty(runtime, "qx", newValues[0]);
|
|
42
|
+
value.setProperty(runtime, "qy", newValues[1]);
|
|
43
|
+
value.setProperty(runtime, "qz", newValues[2]);
|
|
44
|
+
value.setProperty(runtime, "qw", newValues[3]);
|
|
42
45
|
value.setProperty(runtime, "yaw", newValues[4]);
|
|
43
46
|
value.setProperty(runtime, "pitch", newValues[5]);
|
|
44
47
|
value.setProperty(runtime, "roll", newValues[6]);
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
#include <functional>
|
|
3
3
|
#include <memory>
|
|
4
4
|
#include <thread>
|
|
5
|
+
#include <unordered_map>
|
|
6
|
+
|
|
5
7
|
#include "EventHandlerRegistry.h"
|
|
6
8
|
#include "FeaturesConfig.h"
|
|
7
9
|
#include "FrozenObject.h"
|
|
@@ -98,6 +100,10 @@ NativeReanimatedModule::NativeReanimatedModule(
|
|
|
98
100
|
this->onRender(timestampMs);
|
|
99
101
|
};
|
|
100
102
|
updaterFunction = platformDepMethodsHolder.updaterFunction;
|
|
103
|
+
subscribeForKeyboardEventsFunction =
|
|
104
|
+
platformDepMethodsHolder.subscribeForKeyboardEvents;
|
|
105
|
+
unsubscribeFromKeyboardEventsFunction =
|
|
106
|
+
platformDepMethodsHolder.unsubscribeFromKeyboardEvents;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
void NativeReanimatedModule::installCoreFunctions(
|
|
@@ -327,4 +333,38 @@ void NativeReanimatedModule::unregisterSensor(
|
|
|
327
333
|
animatedSensorModule.unregisterSensor(sensorId);
|
|
328
334
|
}
|
|
329
335
|
|
|
336
|
+
jsi::Value NativeReanimatedModule::subscribeForKeyboardEvents(
|
|
337
|
+
jsi::Runtime &rt,
|
|
338
|
+
const jsi::Value &keyboardEventContainer) {
|
|
339
|
+
jsi::Object keyboardEventObj = keyboardEventContainer.getObject(rt);
|
|
340
|
+
std::unordered_map<std::string, std::shared_ptr<ShareableValue>>
|
|
341
|
+
sharedProperties;
|
|
342
|
+
std::shared_ptr<ShareableValue> keyboardStateShared = ShareableValue::adapt(
|
|
343
|
+
rt, keyboardEventObj.getProperty(rt, "state"), this);
|
|
344
|
+
std::shared_ptr<ShareableValue> heightShared = ShareableValue::adapt(
|
|
345
|
+
rt, keyboardEventObj.getProperty(rt, "height"), this);
|
|
346
|
+
|
|
347
|
+
auto keyboardEventDataUpdater =
|
|
348
|
+
[this, &rt, keyboardStateShared, heightShared](
|
|
349
|
+
int keyboardState, int height) {
|
|
350
|
+
auto &keyboardStateValue =
|
|
351
|
+
ValueWrapper::asMutableValue(keyboardStateShared->valueContainer);
|
|
352
|
+
keyboardStateValue->setValue(rt, jsi::Value(keyboardState));
|
|
353
|
+
|
|
354
|
+
auto &heightMutableValue =
|
|
355
|
+
ValueWrapper::asMutableValue(heightShared->valueContainer);
|
|
356
|
+
heightMutableValue->setValue(rt, jsi::Value(height));
|
|
357
|
+
|
|
358
|
+
this->mapperRegistry->execute(*this->runtime);
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
return subscribeForKeyboardEventsFunction(keyboardEventDataUpdater);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
void NativeReanimatedModule::unsubscribeFromKeyboardEvents(
|
|
365
|
+
jsi::Runtime &rt,
|
|
366
|
+
const jsi::Value &listenerId) {
|
|
367
|
+
unsubscribeFromKeyboardEventsFunction(listenerId.asNumber());
|
|
368
|
+
}
|
|
369
|
+
|
|
330
370
|
} // namespace reanimated
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include "RuntimeDecorator.h"
|
|
14
14
|
#include "RuntimeManager.h"
|
|
15
15
|
#include "Scheduler.h"
|
|
16
|
+
#include "SingleInstanceChecker.h"
|
|
16
17
|
|
|
17
18
|
namespace reanimated {
|
|
18
19
|
|
|
@@ -89,6 +90,12 @@ class NativeReanimatedModule : public NativeReanimatedModuleSpec,
|
|
|
89
90
|
const jsi::Value &interval,
|
|
90
91
|
const jsi::Value &sensorDataContainer) override;
|
|
91
92
|
void unregisterSensor(jsi::Runtime &rt, const jsi::Value &sensorId) override;
|
|
93
|
+
jsi::Value subscribeForKeyboardEvents(
|
|
94
|
+
jsi::Runtime &rt,
|
|
95
|
+
const jsi::Value &keyboardEventContainer) override;
|
|
96
|
+
void unsubscribeFromKeyboardEvents(
|
|
97
|
+
jsi::Runtime &rt,
|
|
98
|
+
const jsi::Value &listenerId) override;
|
|
92
99
|
|
|
93
100
|
private:
|
|
94
101
|
std::shared_ptr<MapperRegistry> mapperRegistry;
|
|
@@ -103,6 +110,12 @@ class NativeReanimatedModule : public NativeReanimatedModuleSpec,
|
|
|
103
110
|
std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy;
|
|
104
111
|
AnimatedSensorModule animatedSensorModule;
|
|
105
112
|
ConfigurePropsFunction configurePropsPlatformFunction;
|
|
113
|
+
KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction;
|
|
114
|
+
KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction;
|
|
115
|
+
|
|
116
|
+
#ifdef DEBUG
|
|
117
|
+
SingleInstanceChecker<NativeReanimatedModule> singleInstanceChecker_;
|
|
118
|
+
#endif
|
|
106
119
|
};
|
|
107
120
|
|
|
108
121
|
} // namespace reanimated
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#include "NativeReanimatedModuleSpec.h"
|
|
2
2
|
|
|
3
|
+
#include <utility>
|
|
4
|
+
|
|
3
5
|
#define SPEC_PREFIX(FN_NAME) __hostFunction_NativeReanimatedModuleSpec_##FN_NAME
|
|
4
6
|
|
|
5
7
|
namespace reanimated {
|
|
@@ -138,6 +140,25 @@ static jsi::Value SPEC_PREFIX(configureProps)(
|
|
|
138
140
|
return jsi::Value::undefined();
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
static jsi::Value SPEC_PREFIX(subscribeForKeyboardEvents)(
|
|
144
|
+
jsi::Runtime &rt,
|
|
145
|
+
TurboModule &turboModule,
|
|
146
|
+
const jsi::Value *args,
|
|
147
|
+
size_t count) {
|
|
148
|
+
return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
|
|
149
|
+
->subscribeForKeyboardEvents(rt, std::move(args[0]));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static jsi::Value SPEC_PREFIX(unsubscribeFromKeyboardEvents)(
|
|
153
|
+
jsi::Runtime &rt,
|
|
154
|
+
TurboModule &turboModule,
|
|
155
|
+
const jsi::Value *args,
|
|
156
|
+
size_t count) {
|
|
157
|
+
static_cast<NativeReanimatedModuleSpec *>(&turboModule)
|
|
158
|
+
->unsubscribeFromKeyboardEvents(rt, std::move(args[0]));
|
|
159
|
+
return jsi::Value::undefined();
|
|
160
|
+
}
|
|
161
|
+
|
|
141
162
|
NativeReanimatedModuleSpec::NativeReanimatedModuleSpec(
|
|
142
163
|
std::shared_ptr<CallInvoker> jsInvoker)
|
|
143
164
|
: TurboModule("NativeReanimated", jsInvoker) {
|
|
@@ -163,5 +184,9 @@ NativeReanimatedModuleSpec::NativeReanimatedModuleSpec(
|
|
|
163
184
|
methodMap_["unregisterSensor"] =
|
|
164
185
|
MethodMetadata{1, SPEC_PREFIX(unregisterSensor)};
|
|
165
186
|
methodMap_["configureProps"] = MethodMetadata{2, SPEC_PREFIX(configureProps)};
|
|
187
|
+
methodMap_["subscribeForKeyboardEvents"] =
|
|
188
|
+
MethodMetadata{1, SPEC_PREFIX(subscribeForKeyboardEvents)};
|
|
189
|
+
methodMap_["unsubscribeFromKeyboardEvents"] =
|
|
190
|
+
MethodMetadata{1, SPEC_PREFIX(unsubscribeFromKeyboardEvents)};
|
|
166
191
|
}
|
|
167
192
|
} // namespace reanimated
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#include <string>
|
|
5
5
|
#include <vector>
|
|
6
6
|
|
|
7
|
-
#ifdef
|
|
7
|
+
#ifdef ANDROID
|
|
8
8
|
#include "TurboModule.h"
|
|
9
9
|
#else
|
|
10
10
|
#include <ReactCommon/TurboModule.h>
|
|
@@ -69,6 +69,14 @@ class JSI_EXPORT NativeReanimatedModuleSpec : public TurboModule {
|
|
|
69
69
|
jsi::Runtime &rt,
|
|
70
70
|
const jsi::Value &sensorId) = 0;
|
|
71
71
|
|
|
72
|
+
// keyboard
|
|
73
|
+
virtual jsi::Value subscribeForKeyboardEvents(
|
|
74
|
+
jsi::Runtime &rt,
|
|
75
|
+
const jsi::Value &keyboardEventContainer) = 0;
|
|
76
|
+
virtual void unsubscribeFromKeyboardEvents(
|
|
77
|
+
jsi::Runtime &rt,
|
|
78
|
+
const jsi::Value &listenerId) = 0;
|
|
79
|
+
|
|
72
80
|
// other
|
|
73
81
|
virtual jsi::Value enableLayoutAnimations(
|
|
74
82
|
jsi::Runtime &rt,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
#include <cxxabi.h>
|
|
2
|
+
#include <utility>
|
|
3
|
+
|
|
2
4
|
#include "FrozenObject.h"
|
|
3
5
|
#include "MutableValue.h"
|
|
4
6
|
#include "MutableValueSetterProxy.h"
|
|
5
7
|
#include "RemoteObject.h"
|
|
6
8
|
#include "RuntimeDecorator.h"
|
|
7
9
|
#include "RuntimeManager.h"
|
|
10
|
+
#include "ShareableValue.h"
|
|
8
11
|
#include "SharedParent.h"
|
|
9
12
|
|
|
10
13
|
namespace reanimated {
|
|
@@ -394,8 +397,10 @@ jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) {
|
|
|
394
397
|
} else {
|
|
395
398
|
res = funPtr->call(rt, args, count);
|
|
396
399
|
}
|
|
397
|
-
} catch (
|
|
398
|
-
|
|
400
|
+
} catch (std::exception &e) {
|
|
401
|
+
std::string str = e.what();
|
|
402
|
+
runtimeManager->errorHandler->setError(str);
|
|
403
|
+
runtimeManager->errorHandler->raise();
|
|
399
404
|
} catch (...) {
|
|
400
405
|
if (demangleExceptionName(
|
|
401
406
|
abi::__cxa_current_exception_type()->name()) ==
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#include "JSIStoreValueUser.h"
|
|
2
2
|
#include "RuntimeManager.h"
|
|
3
|
-
#ifdef
|
|
3
|
+
#ifdef ANDROID
|
|
4
4
|
#include <AndroidScheduler.h>
|
|
5
5
|
#endif
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ StoreUser::~StoreUser() {
|
|
|
32
32
|
std::shared_ptr<Scheduler> strongScheduler = scheduler.lock();
|
|
33
33
|
if (strongScheduler != nullptr) {
|
|
34
34
|
std::shared_ptr<StaticStoreUser> sud = storeUserData;
|
|
35
|
-
#ifdef
|
|
35
|
+
#ifdef ANDROID
|
|
36
36
|
jni::ThreadScope::WithClassLoader([&] {
|
|
37
37
|
strongScheduler->scheduleOnUI([id, sud]() {
|
|
38
38
|
const std::lock_guard<std::recursive_mutex> lock(sud->storeMutex);
|
|
File without changes
|
|
File without changes
|
|
@@ -30,6 +30,9 @@ using ConfigurePropsFunction = std::function<void(
|
|
|
30
30
|
jsi::Runtime &rt,
|
|
31
31
|
const jsi::Value &uiProps,
|
|
32
32
|
const jsi::Value &nativeProps)>;
|
|
33
|
+
using KeyboardEventSubscribeFunction =
|
|
34
|
+
std::function<int(std::function<void(int, int)>)>;
|
|
35
|
+
using KeyboardEventUnsubscribeFunction = std::function<void(int)>;
|
|
33
36
|
|
|
34
37
|
struct PlatformDepMethodsHolder {
|
|
35
38
|
RequestRender requestRender;
|
|
@@ -41,6 +44,8 @@ struct PlatformDepMethodsHolder {
|
|
|
41
44
|
UnregisterSensorFunction unregisterSensor;
|
|
42
45
|
SetGestureStateFunction setGestureStateFunction;
|
|
43
46
|
ConfigurePropsFunction configurePropsFunction;
|
|
47
|
+
KeyboardEventSubscribeFunction subscribeForKeyboardEvents;
|
|
48
|
+
KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents;
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
} // namespace reanimated
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#ifdef DEBUG
|
|
4
|
+
|
|
5
|
+
#include <cxxabi.h>
|
|
6
|
+
|
|
7
|
+
#include <iostream>
|
|
8
|
+
#include <string>
|
|
9
|
+
|
|
10
|
+
namespace reanimated {
|
|
11
|
+
|
|
12
|
+
// This is a class that counts how many instances of a different class there
|
|
13
|
+
// are. It is meant only to be used with classes that should only have one
|
|
14
|
+
// instance.
|
|
15
|
+
|
|
16
|
+
template <class T>
|
|
17
|
+
class SingleInstanceChecker {
|
|
18
|
+
public:
|
|
19
|
+
SingleInstanceChecker();
|
|
20
|
+
~SingleInstanceChecker();
|
|
21
|
+
|
|
22
|
+
private:
|
|
23
|
+
void assertWithMessage(bool condition, std::string message) {
|
|
24
|
+
if (!condition) {
|
|
25
|
+
std::cerr << message << std::endl;
|
|
26
|
+
assert(condition);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// A static field will exist separately for every class template.
|
|
31
|
+
// This has to be inline for automatic initialization.
|
|
32
|
+
inline static int instanceCount_;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
template <class T>
|
|
36
|
+
SingleInstanceChecker<T>::SingleInstanceChecker() {
|
|
37
|
+
int status = 0;
|
|
38
|
+
std::string className =
|
|
39
|
+
__cxxabiv1::__cxa_demangle(typeid(T).name(), nullptr, nullptr, &status);
|
|
40
|
+
|
|
41
|
+
// Only one instance should exist, but it is possible for two instances
|
|
42
|
+
// to co-exist during a reload.
|
|
43
|
+
assertWithMessage(
|
|
44
|
+
instanceCount_ <= 1,
|
|
45
|
+
"More than one instance of " + className +
|
|
46
|
+
" present. This may indicate a memory leak due to a retain cycle.");
|
|
47
|
+
|
|
48
|
+
instanceCount_++;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
template <class T>
|
|
52
|
+
SingleInstanceChecker<T>::~SingleInstanceChecker() {
|
|
53
|
+
instanceCount_--;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
} // namespace reanimated
|
|
57
|
+
|
|
58
|
+
#endif // DEBUG
|
|
File without changes
|
package/RNReanimated.podspec
CHANGED
|
@@ -1,58 +1,20 @@
|
|
|
1
1
|
require "json"
|
|
2
|
+
require_relative './scripts/reanimated_utils'
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
reanimated_package_json = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
5
|
+
config = find_config()
|
|
6
|
+
assert_no_multiple_instances(config)
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
begin
|
|
9
|
-
# standard app
|
|
10
|
-
# /appName/node_modules/react-native-reanimated/RNReanimated.podspec
|
|
11
|
-
# /appName/node_modules/react-native/package.json
|
|
12
|
-
reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")))
|
|
13
|
-
reactVersion = reactJson["version"]
|
|
14
|
-
reactTargetTvOS = reactJson["name"] == "react-native-tvos"
|
|
15
|
-
rescue
|
|
16
|
-
begin
|
|
17
|
-
# monorepo
|
|
18
|
-
# /monorepo/packages/appName/node_modules/react-native-reanimated/RNReanimated.podspec
|
|
19
|
-
# /monorepo/node_modules/react-native/package.json
|
|
20
|
-
reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "node_modules", "react-native", "package.json")))
|
|
21
|
-
reactVersion = reactJson["version"]
|
|
22
|
-
reactTargetTvOS = reactJson["name"] == "react-native-tvos"
|
|
23
|
-
rescue
|
|
24
|
-
begin
|
|
25
|
-
# Example app in reanimated repo
|
|
26
|
-
# /react-native-reanimated/RNReanimated.podspec
|
|
27
|
-
# /react-native-reanimated/node_modules/react-native/package.json
|
|
28
|
-
reactJson = JSON.parse(File.read(File.join(__dir__, "node_modules", "react-native", "package.json")))
|
|
29
|
-
reactVersion = reactJson["version"]
|
|
30
|
-
reactTargetTvOS = ENV["ReanimatedTVOSExample"] == "1"
|
|
31
|
-
rescue
|
|
32
|
-
# should never happen
|
|
33
|
-
reactVersion = '0.68.0'
|
|
34
|
-
puts "[RNReanimated] Unable to recognized your `react-native` version! Default `react-native` version: " + reactVersion
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
rnVersion = reactVersion.split('.')[1]
|
|
40
|
-
|
|
41
|
-
folly_prefix = ""
|
|
42
|
-
if rnVersion.to_i >= 64
|
|
43
|
-
folly_prefix = "RCT-"
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DRNVERSION=' + rnVersion
|
|
8
|
+
folly_prefix = config[:react_native_minor_version] >= 64 ? 'RCT-' : ''
|
|
9
|
+
folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -DREACT_NATIVE_MINOR_VERSION=' + config[:react_native_minor_version].to_s
|
|
48
10
|
folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
|
|
49
|
-
folly_version = '2021.04.26.00'
|
|
50
11
|
boost_compiler_flags = '-Wno-documentation'
|
|
51
12
|
|
|
52
13
|
Pod::Spec.new do |s|
|
|
14
|
+
|
|
53
15
|
s.name = "RNReanimated"
|
|
54
|
-
s.version =
|
|
55
|
-
s.summary =
|
|
16
|
+
s.version = reanimated_package_json["version"]
|
|
17
|
+
s.summary = reanimated_package_json["description"]
|
|
56
18
|
s.description = <<-DESC
|
|
57
19
|
RNReanimated
|
|
58
20
|
DESC
|
|
@@ -65,8 +27,7 @@ Pod::Spec.new do |s|
|
|
|
65
27
|
|
|
66
28
|
s.source_files = [
|
|
67
29
|
"ios/**/*.{mm,h,m}",
|
|
68
|
-
"Common/cpp/**/*.cpp"
|
|
69
|
-
"Common/cpp/headers/**/*.h"
|
|
30
|
+
"Common/cpp/**/*.{cpp,h}"
|
|
70
31
|
]
|
|
71
32
|
|
|
72
33
|
s.preserve_paths = [
|
|
@@ -79,13 +40,16 @@ Pod::Spec.new do |s|
|
|
|
79
40
|
}
|
|
80
41
|
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
|
81
42
|
s.xcconfig = {
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags }
|
|
43
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"#{config[:react_native_common_dir]}\"",
|
|
44
|
+
"OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags }
|
|
85
45
|
|
|
86
46
|
s.requires_arc = true
|
|
87
47
|
|
|
88
48
|
s.dependency "React-Core"
|
|
49
|
+
s.dependency "#{folly_prefix}Folly"
|
|
50
|
+
s.dependency "RCTRequired"
|
|
51
|
+
s.dependency "RCTTypeSafety"
|
|
52
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
89
53
|
s.dependency 'FBLazyVector'
|
|
90
54
|
s.dependency 'FBReactNativeSpec'
|
|
91
55
|
s.dependency 'RCTRequired'
|
|
@@ -93,7 +57,7 @@ Pod::Spec.new do |s|
|
|
|
93
57
|
s.dependency 'React-Core'
|
|
94
58
|
s.dependency 'React-CoreModules'
|
|
95
59
|
s.dependency 'React-Core/DevSupport'
|
|
96
|
-
if !
|
|
60
|
+
if !config[:is_tvos_target]
|
|
97
61
|
s.dependency 'React-RCTActionSheet'
|
|
98
62
|
end
|
|
99
63
|
s.dependency 'React-RCTNetwork'
|
|
@@ -113,13 +77,9 @@ Pod::Spec.new do |s|
|
|
|
113
77
|
s.dependency 'DoubleConversion'
|
|
114
78
|
s.dependency 'glog'
|
|
115
79
|
|
|
116
|
-
if
|
|
80
|
+
if config[:react_native_minor_version] == 62
|
|
117
81
|
s.dependency 'ReactCommon/callinvoker'
|
|
118
82
|
else
|
|
119
83
|
s.dependency 'React-callinvoker'
|
|
120
84
|
end
|
|
121
|
-
|
|
122
|
-
s.dependency "#{folly_prefix}Folly"
|
|
123
|
-
|
|
124
85
|
end
|
|
125
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=7.
|
|
1
|
+
#Thu Oct 13 15:02:41 UTC 2022
|
|
2
|
+
gradle.version=7.5.1
|
|
Binary file
|
|
Binary file
|