Closed dwrynngs closed 8 months ago
When I follow the example for using routes, I get an error on the following line
const router = useRouter();
error says "undefined is not a function".
I import it as follows:
import ActionSheet, { useSheetRouteParams, useScrollHandlers, useRouter } from 'react-native-actions-sheet';
I honestly don't know what I am doing wrong. The only difference is I am writing in javascript, not in typescript.
I'm also facing this issue in javascript
use useSheetRouter instead.
useSheetRouter
When I follow the example for using routes, I get an error on the following line
const router = useRouter();
error says "undefined is not a function".
I import it as follows:
import ActionSheet, { useSheetRouteParams, useScrollHandlers, useRouter } from 'react-native-actions-sheet';
I honestly don't know what I am doing wrong. The only difference is I am writing in javascript, not in typescript.