Make it possible to enable/disable screens support with useScreen function

This commit is contained in:
Krzysztof Magiera
2018-09-11 11:29:47 +02:00
parent 96ae5ea176
commit 60511a7e90
2 changed files with 44 additions and 35 deletions

View File

@@ -7,11 +7,14 @@ import {
TouchableHighlight,
} from 'react-native';
import { createStackNavigator, createSwitchNavigator } from 'react-navigation';
import { useScreens } from 'react-native-screens';
import Stack from './stack';
import Tabs from './tabs';
import Navigation from './navigation';
useScreens();
const SCREENS = {
Stack: { screen: Stack, title: 'Stack example' },
Tabs: { screen: Tabs, title: 'Tabs example' },