create-expo-stack 2.21.0 → 2.21.2
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/build/templates/packages/expo-router/drawer/app/(drawer)/(tabs)/_layout.tsx.ejs +1 -1
- package/build/templates/packages/expo-router/drawer/app/(drawer)/(tabs)/index.tsx.ejs +2 -2
- package/build/templates/packages/expo-router/drawer/app/(drawer)/(tabs)/two.tsx.ejs +2 -2
- package/build/templates/packages/expo-router/drawer/app/(drawer)/index.tsx.ejs +2 -2
- package/build/templates/packages/expo-router/drawer/app/+not-found.tsx.ejs +3 -3
- package/build/templates/packages/expo-router/drawer/app/modal.tsx.ejs +1 -1
- package/build/templates/packages/expo-router/tabs/app/(tabs)/index.tsx.ejs +1 -1
- package/build/templates/packages/expo-router/tabs/app/(tabs)/two.tsx.ejs +1 -1
- package/build/templates/packages/expo-router/tabs/app/modal.tsx.ejs +1 -1
- package/build/templates/packages/nativewind/components/Container.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/drawer/app/(drawer)/(tabs)/_layout.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/drawer/app/(drawer)/(tabs)/index.tsx.ejs +2 -2
- package/build/templates/packages/nativewindui/drawer/app/(drawer)/(tabs)/two.tsx.ejs +2 -2
- package/build/templates/packages/nativewindui/drawer/app/_layout.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/tabs/app/(tabs)/index.tsx.ejs +12 -12
- package/build/templates/packages/nativewindui/tabs/app/(tabs)/two.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/tabs/app/_layout.tsx.ejs +4 -4
- package/build/templates/packages/nativewindui/tabs/app/modal.tsx.ejs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tabs } from 'expo-router';
|
|
2
|
-
import { TabBarIcon } from '
|
|
2
|
+
import { TabBarIcon } from '@/components/TabBarIcon';
|
|
3
3
|
<% if (props.stylingPackage?.name === "unistyles") { %>
|
|
4
4
|
import { useUnistyles } from "react-native-unistyles";
|
|
5
5
|
<% } %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from 'expo-router';
|
|
2
2
|
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { ScreenContent } from '
|
|
3
|
+
import { Container } from '@/components/Container';
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from 'expo-router';
|
|
2
2
|
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { ScreenContent } from '
|
|
3
|
+
import { Container } from '@/components/Container';
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from 'expo-router';
|
|
2
2
|
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { ScreenContent } from '
|
|
3
|
+
import { Container } from '@/components/Container';
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
7
|
return (
|
|
@@ -2,16 +2,16 @@ import { Link, Stack } from 'expo-router';
|
|
|
2
2
|
<% if (props.stylingPackage?.name === "nativewind") {%>
|
|
3
3
|
import { Text } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Container } from '
|
|
5
|
+
import { Container } from '@/components/Container';
|
|
6
6
|
<% } else if (props.stylingPackage?.name === "unistyles") { %>
|
|
7
7
|
import { StyleSheet } from 'react-native-unistyles'
|
|
8
8
|
import { Text } from 'react-native';
|
|
9
9
|
|
|
10
|
-
import { Container } from '
|
|
10
|
+
import { Container } from '@/components/Container';
|
|
11
11
|
<% } else if (props.stylingPackage?.name === "stylesheet") { %>
|
|
12
12
|
import { StyleSheet, Text } from 'react-native';
|
|
13
13
|
|
|
14
|
-
import { Container } from '
|
|
14
|
+
import { Container } from '@/components/Container';
|
|
15
15
|
<% } %>
|
|
16
16
|
|
|
17
17
|
export default function NotFoundScreen() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatusBar } from 'expo-status-bar';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { ScreenContent } from '
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
<% if (props.internalizationPackage?.name === "i18next") { %>
|
|
7
7
|
import { InternalizationExample } from 'components/InternalizationExample';
|
|
@@ -6,7 +6,7 @@ import { StyleSheet } from 'react-native-unistyles';
|
|
|
6
6
|
import { StyleSheet, View } from 'react-native';
|
|
7
7
|
<% } %>
|
|
8
8
|
|
|
9
|
-
import { ScreenContent } from '
|
|
9
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
10
10
|
|
|
11
11
|
export default function Home() {
|
|
12
12
|
return (
|
|
@@ -6,7 +6,7 @@ import { StyleSheet } from 'react-native-unistyles';
|
|
|
6
6
|
import { StyleSheet, View } from 'react-native';
|
|
7
7
|
<% } %>
|
|
8
8
|
|
|
9
|
-
import { ScreenContent } from '
|
|
9
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
10
10
|
|
|
11
11
|
export default function Home() {
|
|
12
12
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatusBar } from 'expo-status-bar';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { ScreenContent } from '
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
<% if (props.internalizationPackage?.name === "i18next") { %>
|
|
7
7
|
import { InternalizationExample } from 'components/InternalizationExample';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from 'expo-router';
|
|
2
2
|
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { ScreenContent } from '
|
|
3
|
+
import { Container } from '@/components/Container';
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from 'expo-router';
|
|
2
2
|
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { ScreenContent } from '
|
|
3
|
+
import { Container } from '@/components/Container';
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
7
|
return (
|
|
@@ -15,7 +15,7 @@ import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
|
15
15
|
|
|
16
16
|
import { ThemeToggle } from '@/components/ThemeToggle';
|
|
17
17
|
import { useColorScheme, useInitialAndroidBarSync } from '@/lib/useColorScheme';
|
|
18
|
-
import { NAV_THEME } from '
|
|
18
|
+
import { NAV_THEME } from '@/theme';
|
|
19
19
|
|
|
20
20
|
export {
|
|
21
21
|
// Catch any errors thrown by the Layout component.
|
|
@@ -32,34 +32,34 @@ import { Icon } from '@roninoss/icons';
|
|
|
32
32
|
import * as StoreReview from 'expo-store-review';
|
|
33
33
|
<% } %>
|
|
34
34
|
|
|
35
|
-
import { Container } from '
|
|
35
|
+
import { Container } from '@/components/Container';
|
|
36
36
|
<% if (props.stylingPackage?.options.selectedComponents.includes('activity-indicator')) { %>
|
|
37
|
-
import { ActivityIndicator } from '
|
|
37
|
+
import { ActivityIndicator } from '@/components/nativewindui/ActivityIndicator';
|
|
38
38
|
<% } %>
|
|
39
39
|
<% if (props.stylingPackage?.options.selectedComponents.includes('avatar')) { %>
|
|
40
|
-
import { Avatar, AvatarFallback, AvatarImage } from '
|
|
40
|
+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/nativewindui/Avatar';
|
|
41
41
|
<% } %>
|
|
42
42
|
<% if (props.stylingPackage?.options.selectedComponents.includes('date-picker')) { %>
|
|
43
|
-
import { DatePicker } from '
|
|
43
|
+
import { DatePicker } from '@/components/nativewindui/DatePicker';
|
|
44
44
|
<% } %>
|
|
45
45
|
<% if (props.stylingPackage?.options.selectedComponents.includes('picker')) { %>
|
|
46
|
-
import { Picker, PickerItem } from '
|
|
46
|
+
import { Picker, PickerItem } from '@/components/nativewindui/Picker';
|
|
47
47
|
<% } %>
|
|
48
48
|
<% if (props.stylingPackage?.options.selectedComponents.includes('progress-indicator')) { %>
|
|
49
|
-
import { ProgressIndicator } from '
|
|
49
|
+
import { ProgressIndicator } from '@/components/nativewindui/ProgressIndicator';
|
|
50
50
|
<% } %>
|
|
51
51
|
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
52
|
-
import { Sheet, useSheetRef } from '
|
|
52
|
+
import { Sheet, useSheetRef } from '@/components/nativewindui/Sheet';
|
|
53
53
|
<% } %>
|
|
54
54
|
<% if (props.stylingPackage?.options.selectedComponents.includes('slider')) { %>
|
|
55
|
-
import { Slider } from '
|
|
55
|
+
import { Slider } from '@/components/nativewindui/Slider';
|
|
56
56
|
<% } %>
|
|
57
|
-
import { Text } from '
|
|
57
|
+
import { Text } from '@/components/nativewindui/Text';
|
|
58
58
|
<% if (props.stylingPackage?.options.selectedComponents.includes('toggle')) { %>
|
|
59
|
-
import { Toggle } from '
|
|
59
|
+
import { Toggle } from '@/components/nativewindui/Toggle';
|
|
60
60
|
<% } %>
|
|
61
|
-
import { useColorScheme } from '
|
|
62
|
-
import { useHeaderSearchBar } from '
|
|
61
|
+
import { useColorScheme } from '@/lib/useColorScheme';
|
|
62
|
+
import { useHeaderSearchBar } from '@/lib/useHeaderSearchBar';
|
|
63
63
|
|
|
64
64
|
export default function Home() {
|
|
65
65
|
const searchValue = useHeaderSearchBar({ hideWhenScrolling: COMPONENTS.length === 0 });
|
|
@@ -15,10 +15,10 @@ import { Pressable, View } from 'react-native';
|
|
|
15
15
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
16
16
|
<% } %>
|
|
17
17
|
|
|
18
|
-
import { ThemeToggle } from '
|
|
19
|
-
import { cn } from '
|
|
20
|
-
import { useColorScheme, useInitialAndroidBarSync } from '
|
|
21
|
-
import { NAV_THEME } from '
|
|
18
|
+
import { ThemeToggle } from '@/components/ThemeToggle';
|
|
19
|
+
import { cn } from '@/lib/cn';
|
|
20
|
+
import { useColorScheme, useInitialAndroidBarSync } from '@/lib/useColorScheme';
|
|
21
|
+
import { NAV_THEME } from '@/theme';
|
|
22
22
|
|
|
23
23
|
export {
|
|
24
24
|
// Catch any errors thrown by the Layout component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatusBar } from 'expo-status-bar';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { ScreenContent } from '
|
|
4
|
+
import { ScreenContent } from '@/components/ScreenContent';
|
|
5
5
|
|
|
6
6
|
<% if (props.internalizationPackage?.name === "i18next") { %>
|
|
7
7
|
import { InternalizationExample } from 'components/InternalizationExample';
|