ammarahm-ed / react-native-actions-sheet

A Cross Platform(Android, iOS & Web) ActionSheet with a flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
https://rnas.vercel.app
MIT License
1.49k stars 121 forks source link

Params are undefined #276

Closed AndrewPJohnson closed 1 year ago

AndrewPJohnson commented 1 year ago

Hello!

I'm getting "undefined" when trying to access the params on your new Action sheet router. I route to a component via router.navigate('component', {data: 'param'}) I then try accessing the params in that component via your useSheetRouteParams hook: const params = useSheetRouteParams();

ammarahm-ed commented 1 year ago

Can you reproduce this in a snack? The example app does not have this problem

ammarahm-ed commented 1 year ago

Try the latest version. Its fixed now