expo-template-tabs 44.0.1 → 44.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.tsx +0 -1
- package/components/EditScreenInfo.tsx +0 -1
- package/components/StyledText.tsx +0 -2
- package/components/Themed.tsx +0 -1
- package/hooks/useCachedResources.ts +3 -3
- package/package.json +4 -3
- package/screens/ModalScreen.tsx +0 -1
- package/screens/NotFoundScreen.tsx +1 -2
- package/screens/TabOneScreen.tsx +0 -1
- package/screens/TabTwoScreen.tsx +0 -1
package/App.tsx
CHANGED
package/components/Themed.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FontAwesome } from '@expo/vector-icons';
|
|
2
2
|
import * as Font from 'expo-font';
|
|
3
3
|
import * as SplashScreen from 'expo-splash-screen';
|
|
4
|
-
import
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
5
|
|
|
6
6
|
export default function useCachedResources() {
|
|
7
|
-
const [isLoadingComplete, setLoadingComplete] =
|
|
7
|
+
const [isLoadingComplete, setLoadingComplete] = useState(false);
|
|
8
8
|
|
|
9
9
|
// Load any resources or data that we need prior to rendering the app
|
|
10
|
-
|
|
10
|
+
useEffect(() => {
|
|
11
11
|
async function loadResourcesAndDataAsync() {
|
|
12
12
|
try {
|
|
13
13
|
SplashScreen.preventAutoHideAsync();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-template-tabs",
|
|
3
3
|
"description": "The Tab Navigation project template includes several example screens.",
|
|
4
|
-
"version": "44.0.
|
|
4
|
+
"version": "44.0.5",
|
|
5
5
|
"main": "node_modules/expo/AppEntry.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "expo start",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@react-navigation/bottom-tabs": "^6.0.5",
|
|
20
20
|
"@react-navigation/native": "^6.0.2",
|
|
21
21
|
"@react-navigation/native-stack": "^6.1.0",
|
|
22
|
-
"expo": "~44.0.0
|
|
22
|
+
"expo": "~44.0.0",
|
|
23
23
|
"expo-asset": "~8.4.4",
|
|
24
24
|
"expo-constants": "~13.0.0",
|
|
25
25
|
"expo-font": "~10.0.4",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"@babel/core": "^7.12.9",
|
|
39
39
|
"@types/react": "~17.0.21",
|
|
40
40
|
"@types/react-native": "~0.64.12",
|
|
41
|
-
"jest-expo": "~
|
|
41
|
+
"jest-expo": "~44.0.1",
|
|
42
|
+
"jest": "^26.6.3",
|
|
42
43
|
"react-test-renderer": "17.0.1",
|
|
43
44
|
"typescript": "~4.3.5"
|
|
44
45
|
}
|
package/screens/ModalScreen.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { Text, View } from '../components/Themed';
|
|
4
2
|
|
|
3
|
+
import { Text, View } from '../components/Themed';
|
|
5
4
|
import { RootStackScreenProps } from '../types';
|
|
6
5
|
|
|
7
6
|
export default function NotFoundScreen({ navigation }: RootStackScreenProps<'NotFound'>) {
|
package/screens/TabOneScreen.tsx
CHANGED
package/screens/TabTwoScreen.tsx
CHANGED