Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSideMenuLayoutInsideBottomTabPressed = () => {
Navigation.dismissAllModals();
Navigation.setRoot({
root: {
bottomTabs: {
children: [
{
stack: {
children: [
{
component: {
name: 'navigation.playground.TextScreen',
options: {
topBar: {
animate: false
}
}
}
export function* handleClearRequest() {
yield put(updateBadgeCount())
Navigation.dismissAllModals()
}
popAndroidScannerView() {
Navigation.dismissAllModals()
}
dismissAllModals: function() {
addSentryLog("dismissAllModals", "null");
LOGi.nav("Closing all modals");
Navigation.dismissAllModals();
NavState.allModalsDismissed();
},
const dismissAllModals = () => Navigation.dismissAllModals();
async dismissAllModals() {
try{
return await Navigation.dismissAllModals()
} catch(e) {
return false
}
},
const handleAddSource = useCallback(() => {
if (!pingResult) return
const {content, stat} = pingResult
dispatch(sourcesActions.addSource.request({
source,
stat,
content
}))
Keyboard.dismiss()
Navigation.dismissAllModals()
}, [pingResult])
dismissAllModals() {
Navigation.dismissAllModals();
},
setButtons(buttons) {
onPress: () => {
Navigation.dismissAllModals();
},
}, {
handleStatus() {
const { loggedIn, hasAreas, isAppSynced, componentId, actionsPending, setAppSynced, syncApp } = this.props;
if (loggedIn) {
if (isAppSynced) {
if (this.syncModalOpen) {
Navigation.dismissAllModals();
}
if (!hasAreas) {
Navigation.setStackRoot(componentId, {
component: {
name: 'ForestWatcher.SetupCountry',
passProps: {
goBackDisabled: true
}
}
});
} else {
Navigation.setStackRoot(componentId, {
component: {
name: 'ForestWatcher.Dashboard'
}
});