question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4] App crash after lib installing

See original GitHub issue

Bug

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

  1. Follow instructions from https://gorhom.github.io/react-native-bottom-sheet/
  2. Copy the component below
  3. Run the code

Describe what you expected to happen:

  1. 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:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RomanSuvorovcommented, Aug 25, 2021

@gorhom It helped me. Thank you very much!

1reaction
gorhomcommented, Aug 25, 2021

could clear you metro cache, delete node-modules and try again ? it is working on my side

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found