react-native -v
: react-native-cli: 2.0.1, react-native: 0.59.10npm ls rnpm-plugin-windows
: [email protected]npm ls react-native-windows
: [email protected]node -v
: 10.0.16299.0npm -v
: 6.7.0yarn --version
: 1.15.2Then, specify:
The Root React Component should be rendered.
The app crashes with the following error:
[Critical] [RNW] Exception caught in top handler
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Windows.UI.Xaml.UIElement.Measure(Size availableSize)
at ReactNative.Views.Text.ReactSimpleTextShadowNode.MeasureText(ReactSimpleTextShadowNode textNode, YogaNode node, Single width, YogaMeasureMode widthMode, Single height, YogaMeasureMode heightMode)
at ReactNative.Views.Text.ReactSimpleTextShadowNode.<.ctor>b__10_0(YogaNode node, Single width, YogaMeasureMode widthMode, Single height, YogaMeasureMode heightMode)
at Facebook.Yoga.YogaNode.MeasureInternal(IntPtr unmanagedNodePtr, Single width, YogaMeasureMode widthMode, Single height, YogaMeasureMode heightMode)
at Facebook.Yoga.Native.YGNodeCalculateLayout(YGNodeHandle node, Single availableWidth, Single availableHeight, YogaDirection parentDirection)
at Facebook.Yoga.YogaNode.CalculateLayout(Single width, Single height)
at ReactNative.UIManager.ReactShadowNode.CalculateLayout()
at ReactNative.UIManager.UIImplementation.CalculateRootLayout(ReactShadowNode cssRoot)
at ReactNative.UIManager.UIImplementation.UpdateViewHierarchy()
at ReactNative.UIManager.UIImplementation.DispatchViewUpdates(Int32 batchId)
at ReactNative.UIManager.UIManagerModule.OnBatchComplete()
at ReactNative.Bridge.Queue.ActionQueue.OnNext(Action action)
@rozele - can you take a look at this.
Same error here. I have made some tests and this error happens when a Text node is inside a ScrollView. When MeasureText is called, the height of Text is NaN.
This error is affecting us as well and is stopping us being able to finish our upgrade to RN0.59.
I have created a simple repo of the error here
So, to clarify, this only happens when Text is embedded in a ScrollView? Strange that this doesn't repro in RNTester (which has Text in a ScrollView). Looking now.
Please run:
yarn add [email protected]
or...
npm i --save [email protected]
And confirm if the issue with text is resolved. It looks like the wrong Yoga submodule was published in rc.1.
@rozele I can confirm that I have been able to get our app up and running again using the new rc.3 version
Most helpful comment
Same error here. I have made some tests and this error happens when a Text node is inside a ScrollView. When MeasureText is called, the height of Text is NaN.