Hi! I'm having this error in my app react native app with expo. This is the error tray:
Failed building JavaScript bundle.
Unable to resolve module ./hooks/useBottomSheetSpringConfigs from D:\development\ReactProjects\cat-reminders\node_modules\@gorhom\bottom-sheet\src\index.ts:
Bug
Hi! I'm having this error in my app react native app with expo. This is the error tray:
Failed building JavaScript bundle. Unable to resolve module ./hooks/useBottomSheetSpringConfigs from D:\development\ReactProjects\cat-reminders\node_modules\@gorhom\bottom-sheet\src\index.ts:
None of these files exist:
Environment info
Steps To Reproduce
Describe what you expected to happen:
Reproducible sample code
Here is my code with this library.
import React, { useEffect } from "react"; // native components import { StyleSheet } from "react-native"; // ui components import { View, Text } from "react-native-ui-lib"; import BottomSheet from "@gorhom/bottom-sheet"; // styles import { Colors } from "./styles";
const AvatarsBottomSheet = ({ visible }: Props) => { // sheet ref const sheet = React.createRef();
// sheet content const renderContent = () => { return (
};
return ( <BottomSheet ref={sheet} index={1} snapPoints={[-1, "60%"]} children={renderContent} /> ); };
const styles = StyleSheet.create({ header: { height: 40, borderTopLeftRadius: 30, borderTopRightRadius: 30, alignItems: "center", justifyContent: "flex-end", backgroundColor: Colors.SECONDARY, }, slot: { width: 40, height: 8, borderRadius: 4, marginBottom: 10, backgroundColor: Colors.PRIMARY, }, panel: { backgroundColor: Colors.SECONDARY, }, });
interface Props { visible: boolean; }
export default AvatarsBottomSheet;