skip to Main Content

Android Studio – Up Navigation in android

When I'm pressing the back button on phone or the support action bar, it's exiting the application. How can I fix it to return to the main activity In login code: override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) supportActionBar?.setDisplayShowHomeEnabled(true) ....…

VIEW QUESTION

React Native : Navigate to a screen "nested inside BottomTabNavigator" from firebase push notificaiton click

This is a part of my BottomNavigator code in App.js. const Bottom = createBottomTabNavigator(); return ( <Bottom.Navigator tabBarOptions={...}> <Bottom.Screen name="ScreenA" component={ScreenA} options={...} /> <Bottom.Screen name="ScreenB" component={ScreenB} options={...} /> <Bottom.Screen name="ScreenC" component={ScreenC} options={...} /> <Bottom.Screen name="Chat" component={Chat} options={({navigation}) => ({ tabBarLabel:…

VIEW QUESTION
Back To Top
Search