React-native on IOS: cannot adjust current top of stack beyond available views

后端 未结 2 1361
离开以前
离开以前 2020-12-21 16:59

When writing a component, I suddenly got a very strange error in my IOS simulator: \"cannot adjust current top of stack beyond available views\"

Here is my code:

2条回答
  •  余生分开走
    2020-12-21 17:05

    Okay, so it turns out this happens in React-Native when you misspell the component name. My imported class, Separator should have been spelled Seperator and my linter and the build system did not catch the error. Apparently if you try to use an object that is undefined in React-native, this is the error you get!

提交回复
热议问题