我想通过Action Creator导航到其他屏幕

时间:2019-07-28 11:19:06

标签: react-native react-navigation

export const employeeCreate =({{name,phone,shift})=> {       return(dispatch)=> {const {currentUser} = firebase.auth();       firebase.database()。ref(users/${currentUser.uid}/employees)       .push({name,phone,shift})       .then(()=> {             调度({                   类型:EMPLOYEE_CREATE             })             NavigationActions.navigate('EmployeLists')       });} }

0 个答案:

没有答案