react native - RCTUIManager.m Error frame is not a descendant of <RCTShadowView> IOS -
i'm having error when toggle text input , while keyboard being shown. text input inside animated.view present modally.
[error][tid:com.facebook.react.shadowqueue][rctuimanager.m:1188] view <rctshadowview: 0x1284daae0; viewname: rcttextfield; reacttag: 318; frame: {{0, 27.5}, {256, 18}}> (tag #318) not descendant of <rctshadowview: 0x12827bd40; viewname: rctview; reacttag: 256; frame: {{0, 0}, {320, 799}}> (tag #256)
the problem
the main cause of error, i've found, when multiple views listening keyboard @ same time. can happen, example, when multiple scroll views inside navigation stack listening keyboard events in order scroll text input. issue has come several times react-native-keyboard-aware-scroll-view, when users of library push multiple scroll views onto same navigation stack.
this known issue within rn. might find discussion around pr helpful:
https://github.com/facebook/react-native/pull/7876
current solution
i don't know use case is, solution make sure don't have multiple views listening keyboard @ same time. can either registering , unregistering keyboard event listeners @ appropriate times, or (in case described above, problem caused multiple keyboard aware scroll views in navigation stack), removing views subscribe keyboard events navigation stack before pushing new view.
as can see pr above, fixing problem might lot easier soon. in meantime, can manually check how many listeners have on keyboard.