react-native: error running app with flatuiimplementation
I’m using RN 42 in genymotion. It works fine in IOS and android when not using the new experimental android nodes. When I add the code to android to “turn on” the new experimental nodes I get the following error. thanks
Cannot add a child that doesn't have a YogaNode to a parent without a measure function! (Trying to add a 'ReactVirtualTextShadowNode' to a 'NativeViewWrapper')
addChildAt
ReactShadowNode.java:172
addChildAt
FlatShadowNode.java:219
addChildAt
NativeViewWrapper.java:98
addChildAt
FlatUIImplementation.java:505
setChildren
FlatUIImplementation.java:185
setChildren
UIManagerModule.java:312
invoke
Method.java:-2
invoke
BaseJavaModule.java:345
invoke
JavaModuleWrapper.java:136
run
NativeRunnable.java:-2
handleCallback
Handler.java:739
dispatchMessage
Handler.java:95
dispatchMessage
MessageQueueThreadHandler.java:31
loop
Looper.java:148
run
MessageQueueThreadImpl.java:196
run
Thread.java:818
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 29 (14 by maintainers)
Commits related to this issue
- Implement letterSpacing on Android >= 5.0 Summary: `letterSpacing` is completely missing from RN Android at the moment. I've reviewed the `letterSpacing` implementations in #13199, #13877 and #16801... — committed to facebook/react-native by motiz88 6 years ago
- Implement letterSpacing on Android >= 5.0 Summary: `letterSpacing` is completely missing from RN Android at the moment. I've reviewed the `letterSpacing` implementations in #13199, #13877 and #16801... — committed to vincentriemer/react-native-dom by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to facebook/react-native by motiz88 6 years ago
- Implement letterSpacing on Android >= 5.0 Summary: `letterSpacing` is completely missing from RN Android at the moment. I've reviewed the `letterSpacing` implementations in #13199, #13877 and #16801... — committed to tracemeinc/react-native by motiz88 6 years ago
- Implement letterSpacing on Android >= 5.0 Summary: `letterSpacing` is completely missing from RN Android at the moment. I've reviewed the `letterSpacing` implementations in #13199, #13877 and #16801... — committed to wix-playground/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to hamaron/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to exozet/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to LukeDurrant/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to LukeDurrant/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to bunnyc1986/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to keybase/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to Boulevard/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to macdoum1/react-native by motiz88 6 years ago
- Support Image resizeMode=repeat on Android Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained con... — committed to microsoft/react-native-windows by motiz88 6 years ago
I tracked down the issue and will push a fix later today.
@ericvicenti We’ve encountered the same problem on our project as well. It seems that this is a bug related to RN’s
The app lauches fine with
Text
component. To verify it we created a new project usingreact-native init
, overridenReactNativeHost
’sgetUIImplementationProvider
method to returnnew FlatUIImplementationProvider()
inMainApplication.java
and lauched the project. The app produced the following error:Text
components removed.Fixed in current source.
I did a sample to try
FlatUIImplementation
but hit the same issue