React-native: [iOS]: Time out waiting for modules to be invalidated!

Created on 14 Sep 2017  Â·  12Comments  Â·  Source: facebook/react-native

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.48.3
  2. node -v: v6.8.1
  3. npm -v: 3.10.8
  4. yarn --version:

Then, specify:

  • Target Platform: iOS

  • Development Operating System: macOS 10.12.4

  • Build tools: Xcode

Steps to Reproduce

(Write your steps here:)

  1. create a component, like this
class Root extends React.Component {
    render() {
        return (
            <View style={{display: 'none'}}>
                <Text>这是一个测试!</Text>
            </View>
        );
    }
}

If the '

Expected Behavior

Actual Behavior

(Write what happened. Add screenshots!)
image

Stale

Most helpful comment

was anyone able to fix this issue i'm facing the same issue on iOS everything works fine on android

All 12 comments

I am also facing the same issue. Are you able to solve it?
Please let me know here.

{display: 'none'} cause this bug

I dont use display: 'none' and has this problem

In my case the issue was using react-native-vector-icons, then display a component that has an icon and then removing the component from display really quickly.

i.e

<Icon name={"icon"} size={25} color={color} />

Seems like it might be a memory access issue where where the component is loaded, the icon begins loading, the component is removed, the icon finishes loading, and that error occurs. That's just my theory.

I am having the same problem. It just happened, still don't know what caused it or how to solve it.
Restart everything can only make things right once, after one reload all components disappear.

Really hope that someone can tell me what cause this and how to solve it.

I am also facing the same issue. It happens when the Keyboard is hidden and the orientation is in landscape mode.

Same issue here, I am also using react-native-vector-icons. Maybe @oblador can help us here?

Edit: I am not using any display: none style.

Added some NSLog and found that it's UIManager invalidate timed out.

@javache, it seems this bug (or at least the error message) was introduced in this commit: https://github.com/facebook/react-native/commit/7b770556ac6eb60094bdf59bfd14876b6e2a1307

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

was anyone able to fix this issue i'm facing the same issue on iOS everything works fine on android

Remove letterSpacing if you use it on styles for non English it's will solved the issue,
It's work for me =)

Was this page helpful?
0 / 5 - 0 ratings