You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I basically need to have the sheet popup automatically as soon as the component mount.
I've managed to achieve that by adding a delay (see example below), but this is definitely not very reliable and recommended for production. It won't work without the delay.
useEffect(()=>{console.log('Ref on mount:',actionSheetRef.current);// returns nullsetTimeout(()=>{actionSheetRef.current ? .show();},500);// add a short delay to wait for component mount},[]);
The text was updated successfully, but these errors were encountered:
I basically need to have the sheet popup automatically as soon as the component mount.
I've managed to achieve that by adding a delay (see example below), but this is definitely not very reliable and recommended for production. It won't work without the delay.
The text was updated successfully, but these errors were encountered: