[v4] App crash after lib installing
See original GitHub issueBug
I followed your instructions entirely, but I was unable to run the application with your package. When I run the code, I get an error: TypeError: Object.values requires that input parameter not be null or undefined
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | ^4.0.0-alpha.30 |
react-native | 0.63.3 |
react-native-reanimated | ^2.0.0 |
react-native-gesture-handler | ~1.10.2 |
Steps To Reproduce
- Follow instructions from https://gorhom.github.io/react-native-bottom-sheet/
- Copy the component below
- Run the code
Describe what you expected to happen:
- Able to show the bottom sheet
Reproducible sample code
import React, { useMemo, useRef } from ‘react’; import { Text, View, StyleSheet } from ‘react-native’; import BottomSheet from ‘@gorhom/bottom-sheet’;
export function WalletScreen() {
const bottomSheetRef = useRef(null);
const snapPoints = useMemo(() => ['25%', '50%'], []);
return (
<View style={styles.container}>
<BottomSheet
ref={bottomSheetRef}
index={1}
snapPoints={snapPoints}
>
<View style={styles.contentContainer}>
<Text>Test Screen</Text>
</View>
</BottomSheet>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
contentContainer: {
flex: 1,
alignItems: 'center',
},
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Sudden crash on launch from all TestFlight builds
When we publish the app in TestFlight, it crashes immediately with the same missing library. We were also getting an automated email after...
Read more >Android app crashes after switching from .lib to .so
There may be two reasons why the app fails to start after the change of STATIC -> SHARED . The prebuilt library is...
Read more >app crashes after build · Issue #4444 · realm/realm-js - GitHub
After I installed realm in my react-native app, app crashes without error. "react-native": "^0.67.4", "realm": "^10.14.0", gradle version 7.2
Read more >Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >[ERROR] App crashes on Android after successful packaging ...
Problem: → After successful packaging, whether it is done through File->Packaging->Android(xx) or through the Project Launcher, the app is ...
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
@gorhom It helped me. Thank you very much!
could clear you metro cache, delete node-modules and try again ? it is working on my side