ScrollView crashing the app in release variant.
See original GitHub issueIs this a bug report?
Yes!
Have you read the Contributing Guidelines?
Yes.
Environment
OS: Windows 10 Node: 9.3.0 Yarn: 0.24.5 npm: 5.6.0 Watchman: Not Found Xcode: N/A Android Studio: Version 3.0.0.0 AI-171.4443003
Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.50.4 => 0.50.4
Target Platform:
- Android (7.1.1)
- Android (6.0)
Steps to Reproduce
- Start a fresh react native project. Run
react-native init Test --version 0.50.4
- Edit the
App.js
file with following changes
...
<View style={styles.container}>
<ScrollView contentContainerStyle={{ flexGrow: 1 }}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit App.js
</Text>
<Text style={styles.instructions}>
{instructions}
</Text>
...
</ScrollView>
</View>
...
-
Extend the content a bit so it becomes scrollable.
-
Follow the guide for generating signed .apk file. https://facebook.github.io/react-native/docs/signed-apk-android.html
-
Run
react-native run-android --variant=release
Expected Behavior
Expected the app to work normal in release version like in dev.
Actual Behavior
- App crashes on startup.
- Confirmed the issue on 2 different computers.
- Same issue persist on react-native version 51.0
- App works as expected on react-native version 49.5
Reproducible Demo
Download the project.
Run npm install
Run react-native run-android --variant=release
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
React Native ScrollView Crashes on Android APK
react-native run-android --variant=release. The app launches fine and I can navigate to all the pages, but whenever I try to scroll or press ......
Read more >iOS 16.1 Crashes when scroll (LazyVStack and LazyVGrid)
Start scrolling to top. It blinks and show incorrect count: you see that it shows 1 item in line, but it is impossible....
Read more >Slow rendering - Android Developers
Run a release (or at least non-debuggable) version of your app. · Enable Profile GPU Rendering. · There are certain components, such as ......
Read more >Wrap content inside a scroll view - Unity - Manual
Wrap content inside a scroll view. Version: 2021.3+. This example demonstrates how to use styles to wrap content inside a scroll view.
Read more >Crash/Issue on snackbar swipe [37087964] - Visible to Public
I just checked with the com.android.support:design:23.3.0 library, and it doesn't crash any more but the bug is still there, resulting the UI issue...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aspidvip Its connected to #17348 as I can see.
There is an issue with
..\node_modules\react-native\Libraries\Components\Subscribable.js
oncomponentWillUnmount
function.The workaround I did was to change this:
To this:
I have huge issue with ScrollView not running properly in release mode … WTF in debug all works fine