react-native-reanimated 4.0.0 → 4.0.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/RNReanimated.podspec +0 -6
- package/android/CMakeLists.txt +20 -4
- package/android/build.gradle +33 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java +0 -8
- package/lib/module/jestUtils.js +0 -3
- package/lib/module/jestUtils.js.map +1 -1
- package/lib/module/platform-specific/jsVersion.js +1 -1
- package/lib/module/specs/index.js +1 -3
- package/lib/module/specs/index.js.map +1 -1
- package/lib/typescript/jestUtils.d.ts.map +1 -1
- package/lib/typescript/platform-specific/jsVersion.d.ts +1 -1
- package/lib/typescript/platformFunctions/findNodeHandle.web.d.ts +1 -1
- package/lib/typescript/specs/index.d.ts +1 -4
- package/lib/typescript/specs/index.d.ts.map +1 -1
- package/package.json +2 -7
- package/src/jestUtils.ts +0 -9
- package/src/platform-specific/jsVersion.ts +1 -1
- package/src/specs/index.ts +1 -6
- package/Common/NativeView/CMakeLists.txt +0 -52
- package/Common/NativeView/react/renderer/components/rnreanimated/ComponentDescriptors.h +0 -17
- package/Common/NativeView/react/renderer/components/rnreanimated/ReanimatedShadowNode.cpp +0 -11
- package/Common/NativeView/react/renderer/components/rnreanimated/ReanimatedShadowNode.h +0 -26
- package/Common/NativeView/react/renderer/components/rnreanimated/ReanimatedViewState.h +0 -23
- package/android/src/main/java/com/swmansion/reanimated/view/ReanimatedView.java +0 -13
- package/android/src/main/java/com/swmansion/reanimated/view/ReanimatedViewManager.java +0 -19
- package/apple/reanimated/apple/view/ReanimatedView.h +0 -11
- package/apple/reanimated/apple/view/ReanimatedView.mm +0 -30
- package/lib/module/specs/ReanimatedNativeComponent.js +0 -7
- package/lib/module/specs/ReanimatedNativeComponent.js.map +0 -1
- package/lib/module/specs/ReanimatedViewProvider.js +0 -5
- package/lib/module/specs/ReanimatedViewProvider.js.map +0 -1
- package/lib/module/specs/ReanimatedViewProvider.native.js +0 -5
- package/lib/module/specs/ReanimatedViewProvider.native.js.map +0 -1
- package/lib/typescript/specs/ReanimatedNativeComponent.d.ts +0 -7
- package/lib/typescript/specs/ReanimatedNativeComponent.d.ts.map +0 -1
- package/lib/typescript/specs/ReanimatedViewProvider.d.ts +0 -4
- package/lib/typescript/specs/ReanimatedViewProvider.d.ts.map +0 -1
- package/lib/typescript/specs/ReanimatedViewProvider.native.d.ts +0 -3
- package/lib/typescript/specs/ReanimatedViewProvider.native.d.ts.map +0 -1
- package/src/specs/ReanimatedNativeComponent.ts +0 -9
- package/src/specs/ReanimatedViewProvider.native.ts +0 -4
- package/src/specs/ReanimatedViewProvider.ts +0 -6
package/RNReanimated.podspec
CHANGED
|
@@ -46,12 +46,6 @@ Pod::Spec.new do |s|
|
|
|
46
46
|
sss.header_dir = "reanimated"
|
|
47
47
|
sss.header_mappings_dir = "apple/reanimated"
|
|
48
48
|
end
|
|
49
|
-
|
|
50
|
-
ss.subspec "view" do |sss|
|
|
51
|
-
sss.source_files = "Common/NativeView/**/*.{mm,h,cpp}"
|
|
52
|
-
sss.header_dir = ""
|
|
53
|
-
sss.header_mappings_dir = "Common/NativeView"
|
|
54
|
-
end
|
|
55
49
|
end
|
|
56
50
|
|
|
57
51
|
s.pod_target_xcconfig = {
|
package/android/CMakeLists.txt
CHANGED
|
@@ -49,7 +49,6 @@ file(GLOB_RECURSE REANIMATED_ANDROID_CPP_SOURCES CONFIGURE_DEPENDS
|
|
|
49
49
|
|
|
50
50
|
find_package(fbjni REQUIRED CONFIG)
|
|
51
51
|
find_package(ReactAndroid REQUIRED CONFIG)
|
|
52
|
-
find_package(react-native-worklets REQUIRED CONFIG)
|
|
53
52
|
|
|
54
53
|
add_library(reanimated SHARED ${REANIMATED_COMMON_CPP_SOURCES}
|
|
55
54
|
${REANIMATED_ANDROID_CPP_SOURCES})
|
|
@@ -65,13 +64,30 @@ target_include_directories(
|
|
|
65
64
|
"${REACT_NATIVE_DIR}/ReactCommon/runtimeexecutor"
|
|
66
65
|
"${REACT_NATIVE_DIR}/ReactCommon/jsiexecutor"
|
|
67
66
|
"${REACT_NATIVE_DIR}/ReactCommon/react/renderer/graphics/platform/cxx"
|
|
68
|
-
|
|
67
|
+
"${REACT_NATIVE_WORKLETS_DIR}/Common/cpp"
|
|
68
|
+
"${REACT_NATIVE_WORKLETS_DIR}/android/src/main/cpp")
|
|
69
69
|
|
|
70
70
|
set_target_properties(reanimated PROPERTIES LINKER_LANGUAGE CXX)
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
|
73
|
+
set(BUILD_TYPE "debug")
|
|
74
|
+
else()
|
|
75
|
+
set(BUILD_TYPE "release")
|
|
76
|
+
endif()
|
|
77
|
+
|
|
78
|
+
add_library(worklets SHARED IMPORTED)
|
|
79
|
+
|
|
80
|
+
set_target_properties(
|
|
81
|
+
worklets
|
|
82
|
+
PROPERTIES
|
|
83
|
+
IMPORTED_LOCATION
|
|
84
|
+
"${REACT_NATIVE_WORKLETS_DIR}/android/build/intermediates/cmake/${BUILD_TYPE}/obj/${ANDROID_ABI}/libworklets.so"
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
set_target_properties(reanimated PROPERTIES LINKER_LANGUAGE CXX)
|
|
73
88
|
|
|
74
|
-
target_link_libraries(reanimated
|
|
89
|
+
target_link_libraries(reanimated log ReactAndroid::jsi fbjni::fbjni android
|
|
90
|
+
worklets)
|
|
75
91
|
|
|
76
92
|
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
|
|
77
93
|
target_link_libraries(reanimated ReactAndroid::reactnative)
|
package/android/build.gradle
CHANGED
|
@@ -42,6 +42,28 @@ def resolveReactNativeDirectory() {
|
|
|
42
42
|
)
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
def resolveReactNativeWorkletsDirectory() {
|
|
46
|
+
def reactNativeWorkletsLocation = safeAppExtGet("REACT_NATIVE_WORKLETS_NODE_MODULES_DIR", null)
|
|
47
|
+
if (reactNativeWorkletsLocation != null) {
|
|
48
|
+
return file(reactNativeWorkletsLocation)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Fallback to node resolver for custom directory structures like monorepos.
|
|
52
|
+
def reactNativeWorkletsPackage = file(
|
|
53
|
+
providers.exec {
|
|
54
|
+
workingDir(rootDir)
|
|
55
|
+
commandLine("node", "--print", "require.resolve('react-native-worklets/package.json')")
|
|
56
|
+
}.standardOutput.asText.get().trim()
|
|
57
|
+
)
|
|
58
|
+
if (reactNativeWorkletsPackage.exists()) {
|
|
59
|
+
return reactNativeWorkletsPackage.parentFile
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
throw new GradleException(
|
|
63
|
+
"[Reanimated] Unable to resolve react-native-worklets location in node_modules. You should set project extension property (in `app/build.gradle`) named `REACT_NATIVE_WORKLETS_NODE_MODULES_DIR` with the path to react-native-worklets in node_modules."
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
def getReactNativeMinorVersion() {
|
|
46
68
|
def reactNativeRootDir = resolveReactNativeDirectory()
|
|
47
69
|
def reactProperties = new Properties()
|
|
@@ -102,6 +124,7 @@ if (isNewArchitectureEnabled()) {
|
|
|
102
124
|
}
|
|
103
125
|
|
|
104
126
|
def reactNativeRootDir = resolveReactNativeDirectory()
|
|
127
|
+
def reactNativeWorkletsRootDir = resolveReactNativeWorkletsDirectory()
|
|
105
128
|
def REACT_NATIVE_MINOR_VERSION = getReactNativeMinorVersion()
|
|
106
129
|
def REANIMATED_VERSION = getReanimatedVersion()
|
|
107
130
|
def IS_NEW_ARCHITECTURE_ENABLED = isNewArchitectureEnabled()
|
|
@@ -181,6 +204,7 @@ android {
|
|
|
181
204
|
"-DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}",
|
|
182
205
|
"-DANDROID_TOOLCHAIN=clang",
|
|
183
206
|
"-DREACT_NATIVE_DIR=${toPlatformFileString(reactNativeRootDir.path)}",
|
|
207
|
+
"-DREACT_NATIVE_WORKLETS_DIR=${toPlatformFileString(reactNativeWorkletsRootDir.path)}",
|
|
184
208
|
"-DIS_REANIMATED_EXAMPLE_APP=${IS_REANIMATED_EXAMPLE_APP}",
|
|
185
209
|
"-DREANIMATED_PROFILING=${REANIMATED_PROFILING}",
|
|
186
210
|
"-DREANIMATED_VERSION=${REANIMATED_VERSION}",
|
|
@@ -324,3 +348,12 @@ dependencies {
|
|
|
324
348
|
}
|
|
325
349
|
|
|
326
350
|
preBuild.dependsOn(prepareReanimatedHeadersForPrefabs)
|
|
351
|
+
|
|
352
|
+
if (project != rootProject) {
|
|
353
|
+
evaluationDependsOn(":react-native-worklets")
|
|
354
|
+
|
|
355
|
+
afterEvaluate {
|
|
356
|
+
tasks.getByName("externalNativeBuildDebug").dependsOn(findProject(":react-native-worklets").tasks.getByName("externalNativeBuildDebug"))
|
|
357
|
+
tasks.getByName("externalNativeBuildRelease").dependsOn(findProject(":react-native-worklets").tasks.getByName("externalNativeBuildRelease"))
|
|
358
|
+
}
|
|
359
|
+
}
|
|
@@ -11,10 +11,7 @@ import com.facebook.react.module.annotations.ReactModule;
|
|
|
11
11
|
import com.facebook.react.module.annotations.ReactModuleList;
|
|
12
12
|
import com.facebook.react.module.model.ReactModuleInfo;
|
|
13
13
|
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
|
14
|
-
import com.facebook.react.uimanager.ViewManager;
|
|
15
|
-
import com.swmansion.reanimated.view.ReanimatedViewManager;
|
|
16
14
|
import java.util.HashMap;
|
|
17
|
-
import java.util.List;
|
|
18
15
|
import java.util.Map;
|
|
19
16
|
import java.util.Objects;
|
|
20
17
|
|
|
@@ -32,11 +29,6 @@ public class ReanimatedPackage extends BaseReactPackage implements ReactPackage
|
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
@Override
|
|
36
|
-
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
37
|
-
return List.of(new ReanimatedViewManager());
|
|
38
|
-
}
|
|
39
|
-
|
|
40
32
|
@Override
|
|
41
33
|
public ReactModuleInfoProvider getReactModuleInfoProvider() {
|
|
42
34
|
Class<? extends NativeModule>[] moduleList =
|
package/lib/module/jestUtils.js
CHANGED
|
@@ -182,9 +182,6 @@ const requireFunction = IS_JEST ? require : () => {
|
|
|
182
182
|
throw new ReanimatedError('`setUpTests` is available only in Jest environment.');
|
|
183
183
|
};
|
|
184
184
|
export const setUpTests = (userFramerateConfig = {}) => {
|
|
185
|
-
// Mock ReanimatedView
|
|
186
|
-
jest.mock('react-native-reanimated/lib/module/specs/ReanimatedNativeComponent', () => ({}));
|
|
187
|
-
jest.mock('react-native-reanimated/src/specs/ReanimatedNativeComponent', () => ({}));
|
|
188
185
|
let expect = global.expect;
|
|
189
186
|
if (expect === undefined) {
|
|
190
187
|
const expectModule = requireFunction('expect');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IS_JEST","logger","ReanimatedError","defaultFramerateConfig","fps","isEmpty","obj","Object","keys","length","getStylesFromObject","undefined","fromEntries","entries","map","property","value","_isReanimatedSharedValue","getCurrentProps","component","propsObject","props","jestAnimatedProps","getCurrentStyle","styleObject","style","currentStyle","Array","isArray","forEach","jestInlineStyles","jestInlineStyle","jestAnimatedStyleValue","jestAnimatedStyle","inlineStyles","checkEqual","current","expected","i","findStyleDiff","shouldMatchAllProps","diffs","isEqual","push","expect","compareAndFormatDifferences","currentValues","expectedValues","message","pass","currentValuesStr","JSON","stringify","expectedValuesStr","differences","diff","join","compareProps","expectedProps","currentProps","compareStyle","expectedStyle","config","frameTime","Math","round","beforeTest","jest","useFakeTimers","afterTest","runOnlyPendingTimers","useRealTimers","withReanimatedTimer","animationTest","warn","advanceAnimationByTime","time","advanceTimersByTime","advanceAnimationByFrame","count","requireFunction","require","setUpTests","userFramerateConfig","
|
|
1
|
+
{"version":3,"names":["IS_JEST","logger","ReanimatedError","defaultFramerateConfig","fps","isEmpty","obj","Object","keys","length","getStylesFromObject","undefined","fromEntries","entries","map","property","value","_isReanimatedSharedValue","getCurrentProps","component","propsObject","props","jestAnimatedProps","getCurrentStyle","styleObject","style","currentStyle","Array","isArray","forEach","jestInlineStyles","jestInlineStyle","jestAnimatedStyleValue","jestAnimatedStyle","inlineStyles","checkEqual","current","expected","i","findStyleDiff","shouldMatchAllProps","diffs","isEqual","push","expect","compareAndFormatDifferences","currentValues","expectedValues","message","pass","currentValuesStr","JSON","stringify","expectedValuesStr","differences","diff","join","compareProps","expectedProps","currentProps","compareStyle","expectedStyle","config","frameTime","Math","round","beforeTest","jest","useFakeTimers","afterTest","runOnlyPendingTimers","useRealTimers","withReanimatedTimer","animationTest","warn","advanceAnimationByTime","time","advanceTimersByTime","advanceAnimationByFrame","count","requireFunction","require","setUpTests","userFramerateConfig","global","expectModule","jestGlobals","extend","default","framerateConfig","toHaveAnimatedProps","toHaveAnimatedStyle","getAnimatedStyle"],"sourceRoot":"../../src","sources":["jestUtils.ts"],"mappings":"AAAA;AACA,YAAY;;AAIZ,SAASA,OAAO,EAAEC,MAAM,EAAEC,eAAe,QAAQ,mBAAU;AAuB3D,MAAMC,sBAAsB,GAAG;EAC7BC,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,OAAO,GAAIC,GAAuB,IACtC,CAACA,GAAG,IAAIC,MAAM,CAACC,IAAI,CAACF,GAAG,CAAC,CAACG,MAAM,KAAK,CAAC;AACvC,MAAMC,mBAAmB,GAAIJ,GAAW,IAAK;EAC3C,OAAOA,GAAG,KAAKK,SAAS,GACpB,CAAC,CAAC,GACFJ,MAAM,CAACK,WAAW,CAChBL,MAAM,CAACM,OAAO,CAACP,GAAG,CAAC,CAACQ,GAAG,CAAC,CAAC,CAACC,QAAQ,EAAEC,KAAK,CAAC,KAAK,CAC7CD,QAAQ,EACRC,KAAK,CAACC,wBAAwB,GAAGD,KAAK,CAACA,KAAK,GAAGA,KAAK,CACrD,CACH,CAAC;AACP,CAAC;AASD,MAAME,eAAe,GACnBC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W,GAAGN,eAAe,CAAC,eAAe,CAAC;MACpDpC,MAAM,GAAG0C,WAAW,CAAC1C,MAAM;IAC7B;IACA,IAAIA,MAAM,KAAKjC,SAAS,IAAIiC,MAAM,CAAC2C,MAAM,KAAK5E,SAAS,EAAE;MACvDiC,MAAM,GAAGyC,YAAY,CAACG,OAAO;IAC/B;EACF;EAEA,MAAMC,eAAe,GAAG;IACtB,GAAGtF,sBAAsB;IACzB,GAAGgF;EACL,CAAC;EACDpB,SAAS,GAAGC,IAAI,CAACC,KAAK,CAAC,IAAI,GAAGwB,eAAe,CAACrF,GAAG,CAAC;EAElDwC,MAAM,CAAC2C,MAAM,CAAC;IACZG,mBAAmBA,CACjBvE,SAG4B,EAC5BuC,aAA6D,EAC7D;MACA,OAAOD,YAAY,CAACtC,SAAS,EAAEuC,aAAa,CAAC;IAC/C;EACF,CAAC,CAAC;EAEFd,MAAM,CAAC2C,MAAM,CAAC;IACZI,mBAAmBA,CACjBxE,SAG4B,EAC5B0C,aAA2B,EAC3BC,MAAiC,GAAG,CAAC,CAAC,EACtC;MACA,OAAOF,YAAY,CAACzC,SAAS,EAAE0C,aAAa,EAAEC,MAAM,CAAC;IACvD;EACF,CAAC,CAAC;AACJ,CAAC;AAWD,OAAO,MAAM8B,gBAAgB,GAAIzE,SAA4B,IAAK;EAChE,OAAOI,eAAe;EACpB;EACA;EACAJ,SACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
import ReanimatedTurboModule from "./NativeReanimatedModule.js";
|
|
4
|
-
|
|
5
|
-
export { ReanimatedTurboModule, /** @knipIgnore */
|
|
6
|
-
ReanimatedView };
|
|
4
|
+
export { ReanimatedTurboModule };
|
|
7
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ReanimatedTurboModule"
|
|
1
|
+
{"version":3,"names":["ReanimatedTurboModule"],"sourceRoot":"../../../src","sources":["specs/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,qBAAqB,MAAM,6BAA0B;AAE5D,SAASA,qBAAqB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jestUtils.d.ts","sourceRoot":"","sources":["../../src/jestUtils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAS7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,MAAM,CAAC,EAAE;gBACP,mBAAmB,CAAC,EAAE,OAAO,CAAC;aAC/B,GACA,CAAC,CAAC;YACL,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;SACxD;KACF;CACF;AAiOD,eAAO,MAAM,mBAAmB,kBAAmB,MAAM,IAAI,SAO5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAMlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,SAMpD,CAAC;AAcF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"jestUtils.d.ts","sourceRoot":"","sources":["../../src/jestUtils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAS7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,MAAM,CAAC,EAAE;gBACP,mBAAmB,CAAC,EAAE,OAAO,CAAC;aAC/B,GACA,CAAC,CAAC;YACL,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;SACxD;KACF;CACF;AAiOD,eAAO,MAAM,mBAAmB,kBAAmB,MAAM,IAAI,SAO5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAMlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,SAMpD,CAAC;AAcF,eAAO,MAAM,UAAU,oCAiDtB,CAAC;AAWF,eAAO,MAAM,gBAAgB,cAAe,iBAAiB,iBAM5D,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* version used to build the native part of the library in runtime. Remember to
|
|
4
4
|
* keep this in sync with the version declared in `package.json`
|
|
5
5
|
*/
|
|
6
|
-
export declare const jsVersion = "4.0.
|
|
6
|
+
export declare const jsVersion = "4.0.1";
|
|
7
7
|
//# sourceMappingURL=jsVersion.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Component, ComponentClass } from 'react';
|
|
2
|
-
export declare function findNodeHandle(componentOrHandle: null | number | Component<any, any> | ComponentClass<any>): number |
|
|
2
|
+
export declare function findNodeHandle(componentOrHandle: null | number | Component<any, any> | ComponentClass<any>): number | Component<any, any, any> | ComponentClass<any, any> | null;
|
|
3
3
|
//# sourceMappingURL=findNodeHandle.web.d.ts.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import ReanimatedTurboModule from './NativeReanimatedModule';
|
|
2
|
-
|
|
3
|
-
export { ReanimatedTurboModule,
|
|
4
|
-
/** @knipIgnore */
|
|
5
|
-
ReanimatedView, };
|
|
2
|
+
export { ReanimatedTurboModule };
|
|
6
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/specs/index.ts"],"names":[],"mappings":"AAEA,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/specs/index.ts"],"names":[],"mappings":"AAEA,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-reanimated",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "More powerful alternative to Animated library for React Native.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -166,15 +166,10 @@
|
|
|
166
166
|
},
|
|
167
167
|
"codegenConfig": {
|
|
168
168
|
"name": "rnreanimated",
|
|
169
|
-
"type": "
|
|
169
|
+
"type": "modules",
|
|
170
170
|
"jsSrcsDir": "./src/specs",
|
|
171
171
|
"android": {
|
|
172
172
|
"javaPackageName": "com.swmansion.reanimated"
|
|
173
|
-
},
|
|
174
|
-
"ios": {
|
|
175
|
-
"componentProvider": {
|
|
176
|
-
"ReanimatedView": "ReanimatedView"
|
|
177
|
-
}
|
|
178
173
|
}
|
|
179
174
|
},
|
|
180
175
|
"sideEffects": [
|
package/src/jestUtils.ts
CHANGED
|
@@ -287,15 +287,6 @@ type ToHaveAnimatedStyleConfig = {
|
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
export const setUpTests = (userFramerateConfig = {}) => {
|
|
290
|
-
// Mock ReanimatedView
|
|
291
|
-
jest.mock(
|
|
292
|
-
'react-native-reanimated/lib/module/specs/ReanimatedNativeComponent',
|
|
293
|
-
() => ({})
|
|
294
|
-
);
|
|
295
|
-
jest.mock(
|
|
296
|
-
'react-native-reanimated/src/specs/ReanimatedNativeComponent',
|
|
297
|
-
() => ({})
|
|
298
|
-
);
|
|
299
290
|
let expect: jest.Expect = (global as typeof global & { expect: jest.Expect })
|
|
300
291
|
.expect;
|
|
301
292
|
if (expect === undefined) {
|
package/src/specs/index.ts
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.13)
|
|
2
|
-
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
-
|
|
4
|
-
set(ANDROID_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../android)
|
|
5
|
-
set(CODEGEN_JNI_DIR ${ANDROID_DIR}/build/generated/source/codegen/jni)
|
|
6
|
-
set(CODEGEN_COMPONENTS_DIR ${CODEGEN_JNI_DIR}/react/renderer/components/rnreanimated)
|
|
7
|
-
file(
|
|
8
|
-
GLOB CODEGEN_ORIGINAL_SRCS CONFIGURE_DEPENDS
|
|
9
|
-
${CODEGEN_JNI_DIR}/*.cpp
|
|
10
|
-
${CODEGEN_COMPONENTS_DIR}/*.cpp
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
set(CODEGEN_OVERWRITTEN_JNI_DIR .)
|
|
14
|
-
set(CODEGEN_OVERWRITTEN_COMPONENTS_DIR ${CODEGEN_OVERWRITTEN_JNI_DIR}/react/renderer/components/rnreanimated)
|
|
15
|
-
file(
|
|
16
|
-
GLOB CODEGEN_OVERWRITTEN_SRCS CONFIGURE_DEPENDS
|
|
17
|
-
${CODEGEN_OVERWRITTEN_JNI_DIR}/*.cpp
|
|
18
|
-
${CODEGEN_OVERWRITTEN_COMPONENTS_DIR}/*.cpp
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
add_library(
|
|
22
|
-
react_codegen_rnreanimated
|
|
23
|
-
OBJECT
|
|
24
|
-
${CODEGEN_OVERWRITTEN_SRCS}
|
|
25
|
-
${CODEGEN_ORIGINAL_SRCS}
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
target_include_directories(
|
|
29
|
-
react_codegen_rnreanimated
|
|
30
|
-
PUBLIC
|
|
31
|
-
${CODEGEN_OVERWRITTEN_JNI_DIR}
|
|
32
|
-
${CODEGEN_OVERWRITTEN_COMPONENTS_DIR}
|
|
33
|
-
${CODEGEN_JNI_DIR}
|
|
34
|
-
${CODEGEN_COMPONENTS_DIR}
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
target_link_libraries(
|
|
38
|
-
react_codegen_rnreanimated
|
|
39
|
-
fbjni
|
|
40
|
-
jsi
|
|
41
|
-
reactnative
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
target_compile_options(
|
|
45
|
-
react_codegen_rnreanimated
|
|
46
|
-
PRIVATE
|
|
47
|
-
-DLOG_TAG=\"ReactNative\"
|
|
48
|
-
-fexceptions
|
|
49
|
-
-frtti
|
|
50
|
-
-std=c++20
|
|
51
|
-
-Wall
|
|
52
|
-
)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
4
|
-
#include <react/renderer/components/rnreanimated/ReanimatedShadowNode.h>
|
|
5
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
6
|
-
|
|
7
|
-
#include <memory>
|
|
8
|
-
|
|
9
|
-
namespace facebook::react {
|
|
10
|
-
|
|
11
|
-
using ReanimatedViewComponentDescriptor =
|
|
12
|
-
ConcreteComponentDescriptor<ReanimatedShadowNode>;
|
|
13
|
-
|
|
14
|
-
void rnreanimated_registerComponentDescriptorsFromCodegen(
|
|
15
|
-
const std::shared_ptr<const ComponentDescriptorProviderRegistry> ®istry);
|
|
16
|
-
|
|
17
|
-
} // namespace facebook::react
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#include <react/renderer/components/rnreanimated/ReanimatedShadowNode.h>
|
|
2
|
-
|
|
3
|
-
namespace facebook::react {
|
|
4
|
-
|
|
5
|
-
extern const char ReanimatedViewComponentName[] = "ReanimatedView";
|
|
6
|
-
|
|
7
|
-
void ReanimatedShadowNode::layout(LayoutContext layoutContext) {
|
|
8
|
-
YogaLayoutableShadowNode::layout(layoutContext);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
} // namespace facebook::react
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include <jsi/jsi.h>
|
|
4
|
-
#include <react/renderer/components/rnreanimated/EventEmitters.h>
|
|
5
|
-
#include <react/renderer/components/rnreanimated/Props.h>
|
|
6
|
-
#include <react/renderer/components/rnreanimated/ReanimatedViewState.h>
|
|
7
|
-
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
8
|
-
#include <react/renderer/core/LayoutContext.h>
|
|
9
|
-
|
|
10
|
-
namespace facebook::react {
|
|
11
|
-
|
|
12
|
-
JSI_EXPORT extern const char ReanimatedViewComponentName[];
|
|
13
|
-
|
|
14
|
-
using ReanimatedViewShadowNodeBase = ConcreteViewShadowNode<
|
|
15
|
-
ReanimatedViewComponentName,
|
|
16
|
-
ReanimatedViewProps,
|
|
17
|
-
ReanimatedViewEventEmitter,
|
|
18
|
-
ReanimatedViewState>;
|
|
19
|
-
|
|
20
|
-
class ReanimatedShadowNode final : public ReanimatedViewShadowNodeBase {
|
|
21
|
-
public:
|
|
22
|
-
using ConcreteViewShadowNode::ConcreteViewShadowNode;
|
|
23
|
-
void layout(LayoutContext layoutContext) override;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
} // namespace facebook::react
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#ifdef ANDROID
|
|
4
|
-
#include <folly/dynamic.h>
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
namespace facebook::react {
|
|
8
|
-
|
|
9
|
-
class ReanimatedViewState {
|
|
10
|
-
public:
|
|
11
|
-
ReanimatedViewState() = default;
|
|
12
|
-
|
|
13
|
-
#ifdef ANDROID
|
|
14
|
-
ReanimatedViewState(
|
|
15
|
-
ReanimatedViewState const &previousState,
|
|
16
|
-
folly::dynamic data) {}
|
|
17
|
-
folly::dynamic getDynamic() const {
|
|
18
|
-
return {};
|
|
19
|
-
}
|
|
20
|
-
#endif
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
} // namespace facebook::react
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
package com.swmansion.reanimated.view;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
import android.view.ViewGroup;
|
|
5
|
-
|
|
6
|
-
public class ReanimatedView extends ViewGroup {
|
|
7
|
-
public ReanimatedView(Context context) {
|
|
8
|
-
super(context);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Override
|
|
12
|
-
protected void onLayout(boolean changed, int l, int t, int r, int b) {}
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
package com.swmansion.reanimated.view;
|
|
2
|
-
|
|
3
|
-
import androidx.annotation.NonNull;
|
|
4
|
-
import com.facebook.react.uimanager.ThemedReactContext;
|
|
5
|
-
import com.facebook.react.uimanager.ViewGroupManager;
|
|
6
|
-
|
|
7
|
-
public class ReanimatedViewManager extends ViewGroupManager<ReanimatedView> {
|
|
8
|
-
@NonNull
|
|
9
|
-
@Override
|
|
10
|
-
public String getName() {
|
|
11
|
-
return "ReanimatedView";
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@NonNull
|
|
15
|
-
@Override
|
|
16
|
-
protected ReanimatedView createViewInstance(@NonNull ThemedReactContext themedReactContext) {
|
|
17
|
-
return new ReanimatedView(themedReactContext);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#import <reanimated/apple/view/ReanimatedView.h>
|
|
2
|
-
|
|
3
|
-
#import <react/renderer/components/rnreanimated/ComponentDescriptors.h>
|
|
4
|
-
#import <react/renderer/components/rnreanimated/EventEmitters.h>
|
|
5
|
-
#import <react/renderer/components/rnreanimated/Props.h>
|
|
6
|
-
#import <react/renderer/components/rnreanimated/RCTComponentViewHelpers.h>
|
|
7
|
-
|
|
8
|
-
using namespace facebook::react;
|
|
9
|
-
|
|
10
|
-
@implementation ReanimatedView
|
|
11
|
-
|
|
12
|
-
+ (ComponentDescriptorProvider)componentDescriptorProvider
|
|
13
|
-
{
|
|
14
|
-
return concreteComponentDescriptorProvider<ReanimatedViewComponentDescriptor>();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps
|
|
18
|
-
{
|
|
19
|
-
// const auto &oldViewProps = *std::static_pointer_cast<ReanimatedViewProps const>(_props);
|
|
20
|
-
// const auto &newViewProps = *std::static_pointer_cast<ReanimatedViewProps const>(props);
|
|
21
|
-
|
|
22
|
-
[super updateProps:props oldProps:oldProps];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@end
|
|
26
|
-
|
|
27
|
-
Class<RCTComponentViewProtocol> ReanimatedViewCls(void)
|
|
28
|
-
{
|
|
29
|
-
return ReanimatedView.class;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent","interfaceOnly"],"sourceRoot":"../../../src","sources":["specs/ReanimatedNativeComponent.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,sBAAsB,MAAM,yDAAyD;AAI5F,eAAeA,sBAAsB,CAAc,gBAAgB,EAAE;EACnEC,aAAa,EAAE;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["specs/ReanimatedViewProvider.ts"],"mappings":"AAAA,YAAY;;AAIZ;AACA,eAAe,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ReanimatedView"],"sourceRoot":"../../../src","sources":["specs/ReanimatedViewProvider.native.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAOA,cAAc,MAAM,gCAA6B;AAExD,eAAeA,cAAc","ignoreList":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-native/types/modules/Codegen" />
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
interface NativeProps extends ViewProps {
|
|
4
|
-
}
|
|
5
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=ReanimatedNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/ReanimatedNativeComponent.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,UAAU,WAAY,SAAQ,SAAS;CAAG;;AAE1C,wBAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedViewProvider.d.ts","sourceRoot":"","sources":["../../../src/specs/ReanimatedViewProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;;AAGlD,wBAAwC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedViewProvider.native.d.ts","sourceRoot":"","sources":["../../../src/specs/ReanimatedViewProvider.native.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,eAAe,cAAc,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
|
|
5
|
-
interface NativeProps extends ViewProps {}
|
|
6
|
-
|
|
7
|
-
export default codegenNativeComponent<NativeProps>('ReanimatedView', {
|
|
8
|
-
interfaceOnly: true,
|
|
9
|
-
});
|