Closed tomekzaw closed 1 month ago
mutables.ts
get _value(): Value {
if (SHOULD_BE_USE_WEB) {
return value;
}
- throw new Error(
- '[Reanimated] Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?'
- );
},
+ toString() {
+ return `[Shared value ${this.value}]`;
+ },
This bug was fixed some time ago, the current log of the sharedValue from the example is:
{
"_isReanimatedSharedValue": true,
"addListener": [Function addListener],
"modify": [Function modify],
"removeListener": [Function removeListener],
"value": 42
}
Description
console.log(sv)
gives no output in the Metro console.Simultaneously, Xcode console has the following output:
console.log(String(sv))
gives the following output:[object Object]
Steps to reproduce
Snack or a link to a repository
nope
Reanimated version
3.7.1
React Native version
0.73.4
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
iPhone 15 Pro
Acknowledgements
Yes