diff --git a/Example/index-template.js b/Example/index-template.js index 079f9d0bf24..93f1f383a7e 100644 --- a/Example/index-template.js +++ b/Example/index-template.js @@ -1,4 +1,4 @@ -import { AppRegistry, Platform } from 'react-native'; +import { AppRegistry, LogBox, Platform } from 'react-native'; import { name as appName } from './app.json'; import ${component} from '${path}'; @@ -9,3 +9,7 @@ if (Platform.OS === 'web') { const rootTag = document.getElementById('root'); AppRegistry.runApplication(appName, { rootTag }); } + +LogBox.ignoreLogs([ + 'RCTBridge required dispatch_sync to load REAModule. This may lead to deadlocks', +]); diff --git a/Example/ios/Podfile.lock b/Example/ios/Podfile.lock index 056947ec04f..edd22b79a81 100644 --- a/Example/ios/Podfile.lock +++ b/Example/ios/Podfile.lock @@ -333,7 +333,7 @@ PODS: - React-Core - RNGestureHandler (2.6.0): - React-Core - - RNReanimated (3.0.0-rc.2): + - RNReanimated (3.0.0-rc.3): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -550,7 +550,7 @@ SPEC CHECKSUMS: RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f RNCPicker: 914b557e20b3b8317b084aca9ff4b4edb95f61e4 RNGestureHandler: 920eb17f5b1e15dae6e5ed1904045f8f90e0b11e - RNReanimated: 5b8ad983b39f16e6032d2c58dfb978476a9d087c + RNReanimated: ff1dba9450916aff36779c4e0d79fbcd38b2bbb6 RNScreens: 0df01424e9e0ed7827200d6ed1087ddd06c493f9 RNSVG: 07037623c36f12e41312730622d5f6b3656227ca Yoga: 6c8252e38d65aa387daee699eacf027e055e0b31 diff --git a/FabricExample/ios/Podfile.lock b/FabricExample/ios/Podfile.lock index 7fd51cc364f..984a652bb95 100644 --- a/FabricExample/ios/Podfile.lock +++ b/FabricExample/ios/Podfile.lock @@ -728,7 +728,7 @@ PODS: - React-Codegen - React-RCTFabric - ReactCommon/turbomodule/core - - RNReanimated (3.0.0-rc.2): + - RNReanimated (3.0.0-rc.3): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -1018,7 +1018,7 @@ SPEC CHECKSUMS: React-runtimeexecutor: a11d0c2e14140baf1e449264ca9168ae9ae6bbd0 ReactCommon: 7f86326b92009925c6dcf93f8e825060171c379f RNGestureHandler: 182b4e135cc4fec4988687e2f123e302dc6b4b71 - RNReanimated: df29aa9b51817e785ca76e377b3ee8526ed46528 + RNReanimated: f3fc5589503115973836d6d9d9c8da11eb106ec8 RNScreens: e2cd04caa74748a6e42609a7b84f76c71d70a6ee RNSVG: fa7f6f437c90eea1fbc3d142a40365d561824ab3 SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 diff --git a/FabricExample/src/ArticleProgressExample.tsx b/FabricExample/src/ArticleProgressExample.tsx index 35a9332e3c1..ede754d732d 100644 --- a/FabricExample/src/ArticleProgressExample.tsx +++ b/FabricExample/src/ArticleProgressExample.tsx @@ -16,6 +16,12 @@ export default function ArticleProgressExample() { const measuredText = measure(textRef); const measuredScroll = measure(scrollViewRef); + if (!measuredText || !measuredScroll) { + return { + width: 0, + }; + } + const maxOffset = measuredText.height - measuredScroll.height; // We need this, because the useScrollViewOffset hook reports the offset of diff --git a/TVOSExample/ios/Podfile.lock b/TVOSExample/ios/Podfile.lock index 1b1a3fc75cf..a30a5792908 100644 --- a/TVOSExample/ios/Podfile.lock +++ b/TVOSExample/ios/Podfile.lock @@ -255,7 +255,7 @@ PODS: - React-jsi (= 0.68.0-0) - React-logger (= 0.68.0-0) - React-perflogger (= 0.68.0-0) - - RNReanimated (3.0.0-rc.2): + - RNReanimated (3.0.0-rc.3): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -412,7 +412,7 @@ SPEC CHECKSUMS: React-RCTText: a83b3bf5a5140b3d40c718ecd76f3a64355bbfee React-runtimeexecutor: 5d1482345a0f47d08c8c72865420eb65c695f5a3 ReactCommon: 946395267f1f0c2d4b62c14a798b7bdb5cb19eee - RNReanimated: 580d4487407059eeb86dd23e600041d005e29caf + RNReanimated: 97578354887d5292abf79b899b2087ea4d7bc01c Yoga: 2dd7e4fe11c3ac6e0e009ca7877bcfd00d955bb8 PODFILE CHECKSUM: 252e5be06330220b0f5ac8dd954a25046b50c10e diff --git a/package.json b/package.json index fdb137230ae..c9d96874887 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-reanimated", - "version": "3.0.0-rc.2", + "version": "3.0.0-rc.3", "description": "More powerful alternative to Animated library for React Native.", "scripts": { "test": "yarn run format:js && yarn run lint:js && yarn run test:unit",