File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import { StackActions } from "@react-navigation/native";
44export const isReadyRef = React . createRef ( ) ;
55export const navigationRef = React . createRef ( ) ;
66
7- export const navigate = ( routeName : string , params : any ) => {
7+ export const navigate = ( routeName : string , params ? : any ) => {
88 if ( isReadyRef . current && navigationRef && navigationRef . current ) {
99 // Perform navigation if the app has mounted
1010 navigationRef ?. current . navigate ( routeName , params ) ;
1111 }
1212} ;
1313
14- export const push = ( routeName : string , params : any , ...args : any ) => {
14+ export const push = ( routeName : string , params ? : any , ...args : any ) => {
1515 if ( isReadyRef . current && navigationRef && navigationRef . current ) {
1616 // Perform navigation if the app has mounted
1717 navigationRef . current . dispatch (
Original file line number Diff line number Diff line change 11{
22 "name" : " react-navigation-helpers" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Easy to use React Navigation with these helpers for React Navigation on React Native" ,
55 "keywords" : [
66 " v5" ,
You can’t perform that action at this time.
0 commit comments