From 59724a0947c25bfa3aa16bd4a97bd5449e87bbcd Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Oct 2024 23:27:42 +0530 Subject: Refactor app view screens --- App.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'App.tsx') diff --git a/App.tsx b/App.tsx index 08886a0..9bdcdcc 100644 --- a/App.tsx +++ b/App.tsx @@ -1,22 +1,16 @@ -import React, {Suspense, useEffect} from 'react'; -import {BackHandler, SafeAreaView, View} from 'react-native'; +import React, {Suspense} from 'react'; +import {SafeAreaView, View} from 'react-native'; import {GestureHandlerRootView} from 'react-native-gesture-handler'; import {AppView} from './src/AppView'; import {Provider as JotaiProvider} from 'jotai'; const App: React.FC = () => { - // Disable back button - useEffect(() => { - const sub = BackHandler.addEventListener('hardwareBackPress', () => true); - return () => sub.remove(); - }, []); - return ( }> - + -- cgit v1.3.1