Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions apps/fabric-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNReanimated (3.16.2):
- RNReanimated (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1767,10 +1767,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated (= 3.16.2)
- RNReanimated/worklets (= 3.16.2)
- RNReanimated/reanimated (= 3.16.3)
- RNReanimated/worklets (= 3.16.3)
- Yoga
- RNReanimated/reanimated (3.16.2):
- RNReanimated/reanimated (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1790,9 +1790,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated/apple (= 3.16.2)
- RNReanimated/reanimated/apple (= 3.16.3)
- Yoga
- RNReanimated/reanimated/apple (3.16.2):
- RNReanimated/reanimated/apple (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1813,7 +1813,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNReanimated/worklets (3.16.2):
- RNReanimated/worklets (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -2229,7 +2229,7 @@ SPEC CHECKSUMS:
RNCPicker: d051e0647af8b2ad01a3d39a6b5dd9b7c0ccc166
RNFlashList: 6f169ad83e52579b7754cbbcec1b004c27d82c93
RNGestureHandler: c374c750a0a9bacd95f5c740d146ab9428549d6b
RNReanimated: 897b43389156dfb9a547882d5452df5f8b208fc2
RNReanimated: 2b563f5b9d25c20fade5c428f1ae3dc034961deb
RNScreens: de6e57426ba0e6cbc3fb5b4f496e7f08cb2773c2
RNSVG: 08750404f92a36162a92522cc77dee437be1d257
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Expand Down
16 changes: 8 additions & 8 deletions apps/macos-example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1023,25 +1023,25 @@ PODS:
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- RNReanimated (3.16.2):
- RNReanimated (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/reanimated (= 3.16.2)
- RNReanimated/worklets (= 3.16.2)
- RNReanimated/reanimated (3.16.2):
- RNReanimated/reanimated (= 3.16.3)
- RNReanimated/worklets (= 3.16.3)
- RNReanimated/reanimated (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/reanimated/apple (= 3.16.2)
- RNReanimated/reanimated/apple (3.16.2):
- RNReanimated/reanimated/apple (= 3.16.3)
- RNReanimated/reanimated/apple (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/worklets (3.16.2):
- RNReanimated/worklets (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1270,7 +1270,7 @@ SPEC CHECKSUMS:
RNCAsyncStorage: ec53e44dc3e75b44aa2a9f37618a49c3bc080a7a
RNCPicker: 0173dedc74776227ec6dcc61bb85cd9f07bbb2ac
RNGestureHandler: bb81850add626ddd265294323310fec6e861c96b
RNReanimated: c2481afa76442a90614d08e544c3902b4bddd22d
RNReanimated: 565a7564444cb7d3d81c882c3283e5d122ed57c4
RNSVG: 01eb8d8a0e2289ec3ecc9626ce920e00d2174992
SocketRocket: f6c6249082c011e6de2de60ed641ef8bbe0cfac9
Yoga: 0639c9c8a20ae8043b0b64e2ef6d7a2cd5806aac
Expand Down
16 changes: 8 additions & 8 deletions apps/paper-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNReanimated (3.16.2):
- RNReanimated (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1621,10 +1621,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated (= 3.16.2)
- RNReanimated/worklets (= 3.16.2)
- RNReanimated/reanimated (= 3.16.3)
- RNReanimated/worklets (= 3.16.3)
- Yoga
- RNReanimated/reanimated (3.16.2):
- RNReanimated/reanimated (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1644,9 +1644,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated/apple (= 3.16.2)
- RNReanimated/reanimated/apple (= 3.16.3)
- Yoga
- RNReanimated/reanimated/apple (3.16.2):
- RNReanimated/reanimated/apple (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1667,7 +1667,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNReanimated/worklets (3.16.2):
- RNReanimated/worklets (3.16.3):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -2019,7 +2019,7 @@ SPEC CHECKSUMS:
RNCPicker: 0173dedc74776227ec6dcc61bb85cd9f07bbb2ac
RNFlashList: 115dd44377580761bff386a0caebf165424cf16f
RNGestureHandler: 6dfe7692a191ee224748964127114edf057a1475
RNReanimated: 607d45b7bfad5e594fc5c389fbae028952fc28d8
RNReanimated: addf9d1ab2a73fabff3bc443c952442e11c4dc8e
RNScreens: 19719a9c326e925498ac3b2d35c4e50fe87afc06
RNSVG: 01eb8d8a0e2289ec3ecc9626ce920e00d2174992
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Expand Down
16 changes: 8 additions & 8 deletions apps/tvos-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1031,25 +1031,25 @@ PODS:
- React-jsi (= 0.73.4-0)
- React-logger (= 0.73.4-0)
- React-perflogger (= 0.73.4-0)
- RNReanimated (3.16.2):
- RNReanimated (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/reanimated (= 3.16.2)
- RNReanimated/worklets (= 3.16.2)
- RNReanimated/reanimated (3.16.2):
- RNReanimated/reanimated (= 3.16.3)
- RNReanimated/worklets (= 3.16.3)
- RNReanimated/reanimated (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/reanimated/apple (= 3.16.2)
- RNReanimated/reanimated/apple (3.16.2):
- RNReanimated/reanimated/apple (= 3.16.3)
- RNReanimated/reanimated/apple (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- ReactCommon/turbomodule/core
- RNReanimated/worklets (3.16.2):
- RNReanimated/worklets (3.16.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1267,7 +1267,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 20b2202e3396589a71069d12ae9f328949c7c7b8
React-utils: 0307d396f233e47a167b5aaf045b0e4e1dc19d74
ReactCommon: 17891ca337bfa5a7263649b09f27a8c664537bf2
RNReanimated: be3cf829e5d326cc85c4f5fcbab7c7ce85cbf775
RNReanimated: d84d3e85f9bbc861c23c14b702447f5adcab5905
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: ab50eb8f7fcf1b36aad1801b5687b66b2c0aa000

Expand Down
12 changes: 7 additions & 5 deletions packages/react-native-reanimated/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-reanimated",
"version": "3.16.2",
"version": "3.16.3",
"description": "More powerful alternative to Animated library for React Native.",
"scripts": {
"test": "jest",
Expand Down Expand Up @@ -145,7 +145,7 @@
"prettier": "^3.3.3",
"react": "18.3.1",
"react-native": "0.76.0-rc.3",
"react-native-builder-bob": "0.30.2",
"react-native-builder-bob": "0.33.1",
"react-native-gesture-handler": "2.20.0",
"react-native-web": "0.19.11",
"react-test-renderer": "18.2.0",
Expand All @@ -160,7 +160,8 @@
[
"module",
{
"esm": true
"esm": true,
"jsxRuntime": "classic"
}
],
"typescript"
Expand All @@ -175,8 +176,9 @@
}
},
"sideEffects": [
"./lib/module/reanimated2/layoutReanimation/animationsManager.js",
"./lib/module/reanimated2/core.js",
"./lib/module/layoutReanimation/animationsManager.js",
"./lib/module/core.js",
"./lib/module/initializers.js",
"./lib/module/index.js"
],
"packageManager": "yarn@4.1.1"
Expand Down
6 changes: 0 additions & 6 deletions packages/react-native-reanimated/src/hook/useDerivedValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,5 @@ export function useDerivedValue<Value>(
};
}, dependencies);

useEffect(() => {
return () => {
initRef.current = null;
};
}, []);

return sharedValue;
}
4 changes: 2 additions & 2 deletions packages/react-native-reanimated/src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export function updateLoggerConfig(options?: Partial<LoggerConfig>) {
registerLoggerConfig({
...__reanimatedLoggerConfig,
// Don't reuse previous level and strict values from the global config
level: options?.level ?? LogLevel.warn,
strict: options?.strict ?? false,
level: options?.level ?? DEFAULT_LOGGER_CONFIG.level,
strict: options?.strict ?? DEFAULT_LOGGER_CONFIG.strict,
});
}

Expand Down
32 changes: 31 additions & 1 deletion packages/react-native-reanimated/src/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,37 @@ const hook = {
): EventHandlerProcessed<Event, Context> => NOOP,
// useHandler: ADD ME IF NEEDED
useWorkletCallback: ID,
useSharedValue: <Value>(init: Value) => ({ value: init }),
useSharedValue: <Value>(init: Value) => {
const value = { value: init };
return new Proxy(value, {
get(target, prop) {
if (prop === 'value') {
return target.value;
}
if (prop === 'get') {
return () => target.value;
}
if (prop === 'set') {
return (newValue: Value | ((currentValue: Value) => Value)) => {
if (typeof newValue === 'function') {
target.value = (newValue as (currentValue: Value) => Value)(
target.value
);
} else {
target.value = newValue;
}
};
}
},
set(target, prop: string, newValue) {
if (prop === 'value') {
target.value = newValue;
return true;
}
return false;
},
});
},
// useReducedMotion: ADD ME IF NEEDED
useAnimatedStyle: IMMEDIATE_CALLBACK_INVOCATION,
useAnimatedGestureHandler: NOOP_FACTORY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
* version used to build the native part of the library in runtime. Remember to
* keep this in sync with the version declared in `package.json`
*/
export const jsVersion = '3.16.2';
export const jsVersion = '3.16.3';
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17820,9 +17820,9 @@ __metadata:
languageName: node
linkType: hard

"react-native-builder-bob@npm:0.30.2":
version: 0.30.2
resolution: "react-native-builder-bob@npm:0.30.2"
"react-native-builder-bob@npm:0.33.1":
version: 0.33.1
resolution: "react-native-builder-bob@npm:0.33.1"
dependencies:
"@babel/core": "npm:^7.25.2"
"@babel/plugin-transform-strict-mode": "npm:^7.24.7"
Expand All @@ -17848,7 +17848,7 @@ __metadata:
yargs: "npm:^17.5.1"
bin:
bob: bin/bob
checksum: 10/0a6f2321ce7ba4aa08a40e5d599c94fe4705afc7d67ac9d4e2400603dd91cfa6646afdc02697ff683dca3b2654b1701bab4114c3548f4dfa0c9327a74a8a8a48
checksum: 10/c4aaefdc1f82a88ce66c5b448ed851213ca614c777a775cb0772ab80e75852761b915d715ed6f58f99670b1b2fba6435e1d9c03445b9ba8eb44befeb77f5b532
languageName: node
linkType: hard

Expand Down Expand Up @@ -18014,7 +18014,7 @@ __metadata:
prettier: "npm:^3.3.3"
react: "npm:18.3.1"
react-native: "npm:0.76.0-rc.3"
react-native-builder-bob: "npm:0.30.2"
react-native-builder-bob: "npm:0.33.1"
react-native-gesture-handler: "npm:2.20.0"
react-native-web: "npm:0.19.11"
react-test-renderer: "npm:18.2.0"
Expand Down