react-native-root-siblings icon indicating copy to clipboard operation
react-native-root-siblings copied to clipboard

[Android] not working with react-native 0.62.0

Open cuongnm2301 opened this issue 5 years ago • 17 comments

It work normally in 0.61.5, but when I update to 0.62.0. It work in ios only. pls check. Many thanks

cuongnm2301 avatar Apr 01 '20 03:04 cuongnm2301

yes, the wrong is : Animated: 'useNativeDriver' was not specified. This is required option adn must be explicitly set to 'true' or 'false'

crystalxmumu avatar Apr 02 '20 14:04 crystalxmumu

have the same problem, hope to solve it ASAP.

charway avatar Apr 03 '20 15:04 charway

yes, the wrong is : Animated: 'useNativeDriver' was not specified. This is required option adn must be explicitly set to 'true' or 'false'

How can I fix this

cuongnm2301 avatar Apr 06 '20 01:04 cuongnm2301

This library has nothing to do with Animated. So you may be using some other libraries that depend on this one. Check that first.

sunnylqm avatar Apr 06 '20 02:04 sunnylqm

This library has nothing to do with Animated. So you may be using some other libraries that depend on this one. Check that first.

I use only this one, try to run example but still not working on android

cuongnm2301 avatar Apr 06 '20 02:04 cuongnm2301

Yes, this library does not use animation, but it does not work on android, IOS working.

tharyckgusmao avatar Apr 06 '20 12:04 tharyckgusmao

I can reproduce this issue and is looking into it

sunnylqm avatar Apr 06 '20 14:04 sunnylqm

A workaround is to inject a <RootSiblingParent> in your app root node like this https://github.com/magicismight/react-native-root-siblings/issues/52#issuecomment-563252331 But destroy() still not work. Related to https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/ReactNative/AppRegistry.js#L298-L309 @magicismight

sunnylqm avatar Apr 06 '20 16:04 sunnylqm

very funny is that wrapping a <RootSiblingParent/> to the very root of my app, this lib is working again in RN-0.6.2-Android.

so the code looks like:

export default () => {
  // fixer https://github.com/magicismight/react-native-root-siblings/issues/62
  const Wrapper = Platform.OS === 'ios' ? React.Fragment : RootSiblingParent;
  return (
    <Wrapper>
      <App />
    </Wrapper>
  );
};

@Almouro @pyros2097 @sunnylqm @danielgindi @jigfox

updated:

this method could fix it indeed, but not 100%, sometimes the page is still not show at all

Foveluy avatar Apr 08 '20 05:04 Foveluy

tks @Foveluy it work for me too

cuongnm2301 avatar Apr 09 '20 07:04 cuongnm2301

I still cannot use destroy function when wrapping a <RootSiblingParent/>

wslbxx123 avatar May 08 '20 08:05 wslbxx123

Still not works when call Toast.show

cybercoder avatar May 10 '20 17:05 cybercoder

function

same to me

wuxiii avatar May 20 '20 07:05 wuxiii

same to me

lybrooks avatar May 27 '20 08:05 lybrooks

There is a workaround above. Please read it before you post "+1"/"same", which is meaningless.

sunnylqm avatar May 27 '20 08:05 sunnylqm

With the workaround destroy() does not work, correct? Is there a plan to update this library to support 0.62 & 0.63 without the workaround? Or at least a way for destroy() to work?

StagasaurusRex avatar Jul 14 '20 18:07 StagasaurusRex

Use version 3.2.3

keepzouba avatar Mar 18 '21 02:03 keepzouba