Skip to content

Commit

Permalink
chore: removes unnecessary template component (#2499)
Browse files Browse the repository at this point in the history
* chore: removes unnecessary template component

not needed with this one: https://github.com/ApollosProject/apollos-apps/pull/2489

* podfile
  • Loading branch information
redreceipt committed Jun 8, 2022
1 parent 67fb8d3 commit 8538e3f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions templates/mobile/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ const AppStatusBar = () => {
);
};

const ProtectedRouteWithSplashScreen = () => {
const handleOnRouteChange = () => SplashScreen.hide();
const navigation = useNavigation();
return (
<ProtectedRoute
onRouteChange={handleOnRouteChange}
navigation={navigation}
/>
);
};

const ThemedNavigationContainer = ({ children }) => {
const theme = useTheme();
return (
Expand Down Expand Up @@ -89,10 +78,7 @@ const App = () => (
<Navigator
screenOptions={{ headerShown: false, stackPresentation: 'modal' }}
>
<Screen
name="ProtectedRoute"
component={ProtectedRouteWithSplashScreen}
/>
<Screen name="ProtectedRoute" component={ProtectedRoute} />
<Screen
name="Tabs"
component={Tabs}
Expand Down

0 comments on commit 8538e3f

Please sign in to comment.