react-native-reanimated 2.14.0 → 2.14.2
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/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.5.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +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/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/CMakeLists.txt +41 -32
- package/android/build.gradle +1 -1
- 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/android/react-native-reanimated-71-hermes.aar +0 -0
- package/android/react-native-reanimated-71-jsc.aar +0 -0
- package/lib/createAnimatedComponent.js +3 -3
- package/lib/reanimated2/animation/styleAnimation.js +4 -1
- package/lib/reanimated2/platform-specific/checkVersion.js +4 -0
- package/package.json +1 -1
- package/src/createAnimatedComponent.tsx +3 -3
- package/src/reanimated2/animation/styleAnimation.ts +8 -1
- package/src/reanimated2/platform-specific/checkVersion.ts +6 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Tue Jan 17 15:21:03 UTC 2023
|
|
2
2
|
gradle.version=7.5.1
|
|
Binary file
|
|
Binary file
|
package/android/CMakeLists.txt
CHANGED
|
@@ -160,48 +160,54 @@ else()
|
|
|
160
160
|
set (JSI_LIB "")
|
|
161
161
|
else()
|
|
162
162
|
find_library(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
JSI_LIB
|
|
164
|
+
jsi
|
|
165
|
+
PATHS ${LIBRN_DIR}
|
|
166
|
+
NO_DEFAULT_PATH
|
|
167
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
167
168
|
)
|
|
168
169
|
endif()
|
|
169
170
|
|
|
170
171
|
find_library(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
GLOG_LIB
|
|
173
|
+
glog
|
|
174
|
+
PATHS ${LIBRN_DIR}
|
|
175
|
+
NO_DEFAULT_PATH
|
|
176
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
175
177
|
)
|
|
176
178
|
|
|
177
179
|
find_library(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
FBJNI_LIB
|
|
181
|
+
fbjni
|
|
182
|
+
PATHS ${LIBRN_DIR}
|
|
183
|
+
NO_DEFAULT_PATH
|
|
184
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
182
185
|
)
|
|
183
186
|
|
|
184
187
|
if(${REACT_NATIVE_MINOR_VERSION} LESS 69)
|
|
185
188
|
find_library(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
FOLLY_LIB
|
|
190
|
+
folly_json
|
|
191
|
+
PATHS ${LIBRN_DIR}
|
|
192
|
+
NO_DEFAULT_PATH
|
|
193
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
190
194
|
)
|
|
191
195
|
else()
|
|
192
196
|
find_library(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
FOLLY_LIB
|
|
198
|
+
folly_runtime
|
|
199
|
+
PATHS ${LIBRN_DIR}
|
|
200
|
+
NO_DEFAULT_PATH
|
|
201
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
197
202
|
)
|
|
198
203
|
endif()
|
|
199
204
|
|
|
200
205
|
find_library(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
206
|
+
REACTNATIVEJNI_LIB
|
|
207
|
+
reactnativejni
|
|
208
|
+
PATHS ${LIBRN_DIR}
|
|
209
|
+
NO_DEFAULT_PATH
|
|
210
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
205
211
|
)
|
|
206
212
|
|
|
207
213
|
target_link_libraries(
|
|
@@ -246,10 +252,11 @@ if(${JS_RUNTIME} STREQUAL "hermes")
|
|
|
246
252
|
set(HERMES_EXECUTOR_LIB ReactAndroid::hermes_executor)
|
|
247
253
|
else()
|
|
248
254
|
find_library(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
255
|
+
HERMES_EXECUTOR_LIB
|
|
256
|
+
hermes-executor-debug
|
|
257
|
+
PATHS ${LIBRN_DIR}
|
|
258
|
+
NO_DEFAULT_PATH
|
|
259
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
253
260
|
)
|
|
254
261
|
endif()
|
|
255
262
|
target_link_libraries(
|
|
@@ -269,6 +276,7 @@ elseif(${JS_RUNTIME} STREQUAL "v8")
|
|
|
269
276
|
V8EXECUTOR_LIB
|
|
270
277
|
v8executor
|
|
271
278
|
PATHS ${V8_SO_DIR}
|
|
279
|
+
NO_DEFAULT_PATH
|
|
272
280
|
NO_CMAKE_FIND_ROOT_PATH
|
|
273
281
|
)
|
|
274
282
|
target_link_libraries(
|
|
@@ -281,10 +289,11 @@ elseif(${JS_RUNTIME} STREQUAL "jsc")
|
|
|
281
289
|
set(JSEXECUTOR_LIB ReactAndroid::jscexecutor)
|
|
282
290
|
else()
|
|
283
291
|
find_library(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
292
|
+
JSEXECUTOR_LIB
|
|
293
|
+
jscexecutor
|
|
294
|
+
PATHS ${LIBRN_DIR}
|
|
295
|
+
NO_DEFAULT_PATH
|
|
296
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
288
297
|
)
|
|
289
298
|
endif()
|
|
290
299
|
target_link_libraries(${PACKAGE_NAME} ${JSEXECUTOR_LIB})
|
package/android/build.gradle
CHANGED
|
@@ -481,7 +481,7 @@ android {
|
|
|
481
481
|
debug {
|
|
482
482
|
externalNativeBuild {
|
|
483
483
|
cmake {
|
|
484
|
-
if (JS_RUNTIME == "hermes") {
|
|
484
|
+
if (JS_RUNTIME == "hermes" && !REANIMATED_PACKAGE_BUILD) {
|
|
485
485
|
arguments "-DHERMES_ENABLE_DEBUGGER=1"
|
|
486
486
|
} else {
|
|
487
487
|
arguments "-DHERMES_ENABLE_DEBUGGER=0"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -189,11 +189,11 @@ export default function createAnimatedComponent(Component, options) {
|
|
|
189
189
|
}
|
|
190
190
|
_attachNativeEvents() {
|
|
191
191
|
const node = this._getEventViewRef();
|
|
192
|
-
|
|
192
|
+
let viewTag = findNodeHandle((options === null || options === void 0 ? void 0 : options.setNativeProps) ? this : node);
|
|
193
193
|
const componentName = Component.displayName || Component.name;
|
|
194
194
|
if ((componentName === null || componentName === void 0 ? void 0 : componentName.endsWith('FlashList')) && this._component) {
|
|
195
|
-
// @ts-ignore it's FlashList specific: https://github.com/Shopify/flash-list/blob/218f314e63806b4fe926741ef73f8b9cd6ebc7eb/src/FlashList.tsx#
|
|
196
|
-
viewTag = findNodeHandle(this._component.
|
|
195
|
+
// @ts-ignore it's FlashList specific: https://github.com/Shopify/flash-list/blob/218f314e63806b4fe926741ef73f8b9cd6ebc7eb/src/FlashList.tsx#L815
|
|
196
|
+
viewTag = findNodeHandle(this._component.getScrollableNode());
|
|
197
197
|
}
|
|
198
198
|
for (const key in this.props) {
|
|
199
199
|
const prop = this.props[key];
|
|
@@ -24,7 +24,7 @@ export function setPath(obj, path, value) {
|
|
|
24
24
|
for (let i = 0; i < keys.length - 1; i++) {
|
|
25
25
|
// creates entry if there isn't one
|
|
26
26
|
currObj = currObj;
|
|
27
|
-
if (!
|
|
27
|
+
if (!(keys[i] in currObj)) {
|
|
28
28
|
// if next key is a number create an array
|
|
29
29
|
if (typeof keys[i + 1] === 'number') {
|
|
30
30
|
currObj[keys[i]] = [];
|
|
@@ -117,6 +117,9 @@ export function withStyleAnimation(styleAnimations) {
|
|
|
117
117
|
if (prevAnimation && !prevVal) {
|
|
118
118
|
prevVal = prevAnimation.current;
|
|
119
119
|
}
|
|
120
|
+
if (prevVal === undefined) {
|
|
121
|
+
console.warn(`Initial values for animation are missing for property ${currentEntry.path.join('.')}`);
|
|
122
|
+
}
|
|
120
123
|
setPath(animation.current, currentEntry.path, prevVal);
|
|
121
124
|
let currentAnimation;
|
|
122
125
|
if (typeof currentEntry.value !== 'object' ||
|
|
@@ -4,6 +4,10 @@ import { version as jsVersion } from '../../../package.json';
|
|
|
4
4
|
*/
|
|
5
5
|
export function checkVersion() {
|
|
6
6
|
const cppVersion = global._REANIMATED_VERSION_CPP;
|
|
7
|
+
if (cppVersion === undefined) {
|
|
8
|
+
console.error(`[Reanimated] Couldn't determine the version of the native part of Reanimated. Did you forget to re-build the app after upgrading react-native-reanimated? If you use Expo Go, you must use the exact version which is bundled into Expo SDK.`);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
7
11
|
const ok = (() => {
|
|
8
12
|
if (jsVersion.match(/^\d+\.\d+\.\d+$/) &&
|
|
9
13
|
cppVersion.match(/^\d+\.\d+\.\d+$/)) {
|
package/package.json
CHANGED
|
@@ -241,12 +241,12 @@ export default function createAnimatedComponent(
|
|
|
241
241
|
|
|
242
242
|
_attachNativeEvents() {
|
|
243
243
|
const node = this._getEventViewRef();
|
|
244
|
-
|
|
244
|
+
let viewTag = findNodeHandle(options?.setNativeProps ? this : node);
|
|
245
245
|
const componentName = Component.displayName || Component.name;
|
|
246
246
|
|
|
247
247
|
if (componentName?.endsWith('FlashList') && this._component) {
|
|
248
|
-
// @ts-ignore it's FlashList specific: https://github.com/Shopify/flash-list/blob/218f314e63806b4fe926741ef73f8b9cd6ebc7eb/src/FlashList.tsx#
|
|
249
|
-
viewTag = findNodeHandle(this._component.
|
|
248
|
+
// @ts-ignore it's FlashList specific: https://github.com/Shopify/flash-list/blob/218f314e63806b4fe926741ef73f8b9cd6ebc7eb/src/FlashList.tsx#L815
|
|
249
|
+
viewTag = findNodeHandle(this._component.getScrollableNode());
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
for (const key in this.props) {
|
|
@@ -46,7 +46,7 @@ export function setPath<T>(
|
|
|
46
46
|
for (let i = 0; i < keys.length - 1; i++) {
|
|
47
47
|
// creates entry if there isn't one
|
|
48
48
|
currObj = currObj as { [key: string]: NestedObjectValues<T> };
|
|
49
|
-
if (!
|
|
49
|
+
if (!(keys[i] in currObj)) {
|
|
50
50
|
// if next key is a number create an array
|
|
51
51
|
if (typeof keys[i + 1] === 'number') {
|
|
52
52
|
currObj[keys[i]] = [];
|
|
@@ -178,6 +178,13 @@ export function withStyleAnimation(
|
|
|
178
178
|
if (prevAnimation && !prevVal) {
|
|
179
179
|
prevVal = prevAnimation.current;
|
|
180
180
|
}
|
|
181
|
+
if (prevVal === undefined) {
|
|
182
|
+
console.warn(
|
|
183
|
+
`Initial values for animation are missing for property ${currentEntry.path.join(
|
|
184
|
+
'.'
|
|
185
|
+
)}`
|
|
186
|
+
);
|
|
187
|
+
}
|
|
181
188
|
setPath(animation.current, currentEntry.path, prevVal);
|
|
182
189
|
let currentAnimation: AnimationObject;
|
|
183
190
|
if (
|
|
@@ -5,6 +5,12 @@ import { version as jsVersion } from '../../../package.json';
|
|
|
5
5
|
*/
|
|
6
6
|
export function checkVersion(): void {
|
|
7
7
|
const cppVersion = global._REANIMATED_VERSION_CPP;
|
|
8
|
+
if (cppVersion === undefined) {
|
|
9
|
+
console.error(
|
|
10
|
+
`[Reanimated] Couldn't determine the version of the native part of Reanimated. Did you forget to re-build the app after upgrading react-native-reanimated? If you use Expo Go, you must use the exact version which is bundled into Expo SDK.`
|
|
11
|
+
);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
8
14
|
const ok = (() => {
|
|
9
15
|
if (
|
|
10
16
|
jsVersion.match(/^\d+\.\d+\.\d+$/) &&
|