Skip to content

Commit

Permalink
chore: remove constants.expo.tsx and move logic to constants.tsx (cal…
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne authored Apr 15, 2021
1 parent 9e8e477 commit cf70dec
Show file tree
Hide file tree
Showing 5 changed files with 2,035 additions and 2,093 deletions.
11 changes: 6 additions & 5 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"author": "",
"private": true,
"scripts": {
"start": "expo start",
"android": "expo android",
"ios": "expo ios",
"web": "expo start:web"
"start": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start",
"android": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start --android",
"ios": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start --ios",
"web": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start --web"
},
"main": "node_modules/expo/AppEntry.js",
"dependencies": {
Expand All @@ -22,6 +22,7 @@
"expo-font": "~8.4.0",
"expo-keep-awake": "~8.4.0",
"expo-splash-screen": "~0.8.1",
"expo-status-bar": "~1.0.3",
"file-loader": "^4.0.0",
"react": "16.13.1",
"react-dom": "16.13.1",
Expand All @@ -43,6 +44,6 @@
"@babel/preset-typescript": "^7.3.3",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "8.3.0",
"expo-cli": "^3.4.1"
"expo-cli": "^4.1.6"
}
}
5 changes: 3 additions & 2 deletions example/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as React from 'react';
import { I18nManager, Platform, StatusBar } from 'react-native';
import { I18nManager, Platform } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { Updates } from 'expo';
import { useKeepAwake } from 'expo-keep-awake';
import { StatusBar } from 'expo-status-bar';
import { InitialState, NavigationContainer } from '@react-navigation/native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import {
Expand Down Expand Up @@ -202,7 +203,7 @@ export default function PaperExample() {
<Drawer.Screen name="Home" component={App} />
</Drawer.Navigator>
)}
<StatusBar barStyle="light-content" />
<StatusBar style="light" />
</NavigationContainer>
</React.Fragment>
</PreferencesContext.Provider>
Expand Down
Loading

0 comments on commit cf70dec

Please sign in to comment.