简体   繁体   中英

React-Native app is rendered different when distributed with Testflight

I am currently working on a react-native app and everything went smooth so far.

But suddenly on a new testflight release the app is rendered different when distributed with testflight than when i test in the simulator or directly on devices via xcode. With different I mean that big parts of the views are simply not displayed (the app is still working and not crashing however). Previous builds worked fine on testflight.

I tried:

  • Product->Clean in xCode
  • New Checkout from Git
  • Using Fastlane vs building & uploading manually
  • Deleting app from device, restarting and reinstalling

But no success. How is that possible? i can understand that it might have different results in simulator vs real device. But real device via xcode vs testflight makes no sense to me. Any help appreciated, thanks!

It is probably quite specific but might help someone at sometime: Problem in my case was that one View I wrote inherited from View instead of Component.

I am still wondering why it was rendered correctly in Debug mode but broken in Release mode but

myView extends Component{
...
}

instead of

myView extends View{
...
}

solved it for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM