create-expo-stack 2.7.0-next.ba3b85d → 2.7.0-next.ba4f707
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/README.md +16 -9
- package/build/templates/base/app.json.ejs +5 -1
- package/build/templates/base/package.json.ejs +30 -2
- package/build/templates/base/tsconfig.json.ejs +1 -1
- package/build/templates/packages/nativewindui/app/+not-found.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/app/_layout.tsx.ejs +25 -19
- package/build/templates/packages/nativewindui/app/index.tsx.ejs +638 -121
- package/build/templates/packages/nativewindui/app/modal.tsx.ejs +20 -19
- package/build/templates/packages/nativewindui/components/nativewind-ui/ActivityIndicator.tsx.ejs +10 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/Avatar.tsx.ejs +139 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/DatePicker.android.tsx.ejs +66 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/DatePicker.tsx.ejs +10 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/Picker.tsx.ejs +39 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/ProgressIndicator.tsx.ejs +95 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/SegmentedControl.tsx.ejs +22 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/Sheet.tsx.ejs +59 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/Slider.tsx.ejs +28 -0
- package/build/templates/packages/nativewindui/components/{Text.tsx.ejs → nativewind-ui/Text.tsx.ejs} +26 -2
- package/build/templates/packages/nativewindui/components/{ThemeToggle.tsx.ejs → nativewind-ui/ThemeToggle.tsx.ejs} +7 -9
- package/build/templates/packages/nativewindui/components/{Toggle.tsx.ejs → nativewind-ui/Toggle.tsx.ejs} +3 -3
- package/build/templates/packages/nativewindui/global.css.ejs +3 -3
- package/build/templates/packages/nativewindui/lib/useColorScheme.tsx.ejs +1 -1
- package/build/templates/packages/nativewindui/lib/useHeaderSearchBar.tsx.ejs +2 -2
- package/build/templates/packages/nativewindui/theme/colors.ts.ejs +8 -8
- package/build/templates/packages/nativewindui/theme/index.ts.ejs +4 -4
- package/build/types/types.d.ts +2 -0
- package/build/utilities/configureProjectFiles.js +42 -13
- package/build/utilities/runCLI.js +80 -26
- package/package.json +1 -1
- package/build/templates/packages/nativewindui/app/bottom-tabs/_layout.tsx.ejs +0 -34
- package/build/templates/packages/nativewindui/app/bottom-tabs/index.tsx.ejs +0 -11
- package/build/templates/packages/nativewindui/app/bottom-tabs/profile.tsx.ejs +0 -11
- package/build/templates/packages/nativewindui/app/drawer/_layout.tsx.ejs +0 -29
- package/build/templates/packages/nativewindui/app/drawer/index.tsx.ejs +0 -11
- package/build/templates/packages/nativewindui/app/top-tabs/_layout.tsx.ejs +0 -71
- package/build/templates/packages/nativewindui/app/top-tabs/following.tsx.ejs +0 -13
- package/build/templates/packages/nativewindui/app/top-tabs/index.tsx.ejs +0 -13
- package/build/templates/packages/nativewindui/app/top-tabs/my-group.tsx.ejs +0 -13
package/README.md
CHANGED
|
@@ -143,6 +143,13 @@ Thanks go to these wonderful people:
|
|
|
143
143
|
<sub><b>Null</b></sub>
|
|
144
144
|
</a>
|
|
145
145
|
</td>
|
|
146
|
+
<td align="center">
|
|
147
|
+
<a href="https://github.com/mrzachnugent">
|
|
148
|
+
<img src="https://avatars.githubusercontent.com/u/63797719?v=4" width="100;" alt="mrzachnugent"/>
|
|
149
|
+
<br />
|
|
150
|
+
<sub><b>Zach Nugent</b></sub>
|
|
151
|
+
</a>
|
|
152
|
+
</td>
|
|
146
153
|
<td align="center">
|
|
147
154
|
<a href="https://github.com/kratos-respawned">
|
|
148
155
|
<img src="https://avatars.githubusercontent.com/u/87561983?v=4" width="100;" alt="kratos-respawned"/>
|
|
@@ -170,15 +177,15 @@ Thanks go to these wonderful people:
|
|
|
170
177
|
<br />
|
|
171
178
|
<sub><b>Daniel Williams</b></sub>
|
|
172
179
|
</a>
|
|
173
|
-
</td>
|
|
180
|
+
</td></tr>
|
|
181
|
+
<tr>
|
|
174
182
|
<td align="center">
|
|
175
183
|
<a href="https://github.com/todevmilen">
|
|
176
184
|
<img src="https://avatars.githubusercontent.com/u/78319110?v=4" width="100;" alt="todevmilen"/>
|
|
177
185
|
<br />
|
|
178
186
|
<sub><b>Milen Todev</b></sub>
|
|
179
187
|
</a>
|
|
180
|
-
</td
|
|
181
|
-
<tr>
|
|
188
|
+
</td>
|
|
182
189
|
<td align="center">
|
|
183
190
|
<a href="https://github.com/alitnk">
|
|
184
191
|
<img src="https://avatars.githubusercontent.com/u/35243344?v=4" width="100;" alt="alitnk"/>
|
|
@@ -213,15 +220,15 @@ Thanks go to these wonderful people:
|
|
|
213
220
|
<br />
|
|
214
221
|
<sub><b>Andrew Levy</b></sub>
|
|
215
222
|
</a>
|
|
216
|
-
</td>
|
|
223
|
+
</td></tr>
|
|
224
|
+
<tr>
|
|
217
225
|
<td align="center">
|
|
218
226
|
<a href="https://github.com/gialencar">
|
|
219
227
|
<img src="https://avatars.githubusercontent.com/u/11895696?v=4" width="100;" alt="gialencar"/>
|
|
220
228
|
<br />
|
|
221
229
|
<sub><b>Gilson Alencar</b></sub>
|
|
222
230
|
</a>
|
|
223
|
-
</td
|
|
224
|
-
<tr>
|
|
231
|
+
</td>
|
|
225
232
|
<td align="center">
|
|
226
233
|
<a href="https://github.com/mwarger">
|
|
227
234
|
<img src="https://avatars.githubusercontent.com/u/686823?v=4" width="100;" alt="mwarger"/>
|
|
@@ -256,15 +263,15 @@ Thanks go to these wonderful people:
|
|
|
256
263
|
<br />
|
|
257
264
|
<sub><b>Joar Karlsson</b></sub>
|
|
258
265
|
</a>
|
|
259
|
-
</td>
|
|
266
|
+
</td></tr>
|
|
267
|
+
<tr>
|
|
260
268
|
<td align="center">
|
|
261
269
|
<a href="https://github.com/Joehoel">
|
|
262
270
|
<img src="https://avatars.githubusercontent.com/u/31251240?v=4" width="100;" alt="Joehoel"/>
|
|
263
271
|
<br />
|
|
264
272
|
<sub><b>Joël Kuijper</b></sub>
|
|
265
273
|
</a>
|
|
266
|
-
</td
|
|
267
|
-
<tr>
|
|
274
|
+
</td>
|
|
268
275
|
<td align="center">
|
|
269
276
|
<a href="https://github.com/asapMaki">
|
|
270
277
|
<img src="https://avatars.githubusercontent.com/u/30200380?v=4" width="100;" alt="asapMaki"/>
|
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
<% } %>
|
|
40
40
|
"orientation": "portrait",
|
|
41
41
|
"icon": "./assets/icon.png",
|
|
42
|
-
"
|
|
42
|
+
<% if (props.stylingPackage?.name === "nativewindui") { %>
|
|
43
|
+
"userInterfaceStyle": "automatic",
|
|
44
|
+
<% } else { %>
|
|
45
|
+
"userInterfaceStyle": "light",
|
|
46
|
+
<% } %>
|
|
43
47
|
"splash": {
|
|
44
48
|
"image": "./assets/splash.png",
|
|
45
49
|
"resizeMode": "contain",
|
|
@@ -20,15 +20,43 @@
|
|
|
20
20
|
"nativewind": "^4.0.1",
|
|
21
21
|
<% } %>
|
|
22
22
|
<% if (props.stylingPackage?.name === "nativewindui") { %>
|
|
23
|
-
"@react-navigation/material-top-tabs": "^6.6.13",
|
|
24
23
|
"@roninoss/icons": "^0.0.3",
|
|
24
|
+
"@shopify/flash-list": "1.6.3",
|
|
25
25
|
"class-variance-authority": "^0.7.0",
|
|
26
26
|
"clsx": "^2.1.0",
|
|
27
27
|
"expo-dev-client": "~3.3.8",
|
|
28
28
|
"tailwind-merge": "^2.2.1",
|
|
29
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('selectable-text')) { %>
|
|
29
30
|
"react-native-uitextview": "^1.1.4",
|
|
31
|
+
<% } %>
|
|
30
32
|
"react-native-pager-view": "6.2.3",
|
|
31
|
-
|
|
33
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('date-picker')) { %>
|
|
34
|
+
"@react-native-community/datetimepicker": "7.7.0",
|
|
35
|
+
<% } %>
|
|
36
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('segmented-control')) { %>
|
|
37
|
+
"@react-native-segmented-control/segmented-control": "2.4.1",
|
|
38
|
+
<% } %>
|
|
39
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('picker')) { %>
|
|
40
|
+
"@react-native-picker/picker": "2.6.1",
|
|
41
|
+
<% } %>
|
|
42
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
43
|
+
"@gorhom/bottom-sheet": "^4",
|
|
44
|
+
<% } %>
|
|
45
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
46
|
+
"@expo/react-native-action-sheet": "^4.0.1",
|
|
47
|
+
<% } %>
|
|
48
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('context-menu') || props.stylingPackage?.options.selectedComponents.includes('dropdown-menu')) { %>
|
|
49
|
+
"zeego": "^1.9.1",
|
|
50
|
+
"react-native-ios-context-menu": "^2.5.0",
|
|
51
|
+
"react-native-ios-utilities": "^4.4.0",
|
|
52
|
+
"@react-native-menu/menu": "^0.9.1",
|
|
53
|
+
<% } %>
|
|
54
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('ratings-indicator')) { %>
|
|
55
|
+
"expo-store-review": "~6.8.3",
|
|
56
|
+
<% } %>
|
|
57
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('slider')) { %>
|
|
58
|
+
"@react-native-community/slider": "4.4.2",
|
|
59
|
+
<% } %>
|
|
32
60
|
<% } %>
|
|
33
61
|
|
|
34
62
|
<% if (props.stylingPackage?.name === "restyle") { %>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"baseUrl": ".",
|
|
8
8
|
"paths": {
|
|
9
9
|
<% if (props.stylingPackage?.name === 'nativewindui') { %>
|
|
10
|
-
"
|
|
10
|
+
"~/*": [ "./*" ]
|
|
11
11
|
<% } else { %>
|
|
12
12
|
<% if (props.navigationPackage?.name === "expo-router" && props.flags.importAlias === true) { %>
|
|
13
13
|
"~/*": ["*"]
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '~/global.css';
|
|
2
2
|
import 'expo-dev-client';
|
|
3
3
|
import { ThemeProvider as NavThemeProvider } from '@react-navigation/native';
|
|
4
4
|
import { Icon } from '@roninoss/icons';
|
|
5
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
6
|
+
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
|
|
7
|
+
<% } %>
|
|
8
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
9
|
+
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
|
|
10
|
+
<% } %>
|
|
5
11
|
import { Link, Stack } from 'expo-router';
|
|
6
12
|
import { StatusBar } from 'expo-status-bar';
|
|
7
13
|
import { Pressable, View } from 'react-native';
|
|
14
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
8
15
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
16
|
+
<% } %>
|
|
9
17
|
|
|
10
|
-
import { ThemeToggle } from '
|
|
11
|
-
import { cn } from '
|
|
12
|
-
import { useColorScheme } from '
|
|
13
|
-
import { NAV_THEME } from '
|
|
18
|
+
import { ThemeToggle } from '~/components/nativewind-ui/ThemeToggle';
|
|
19
|
+
import { cn } from '~/lib/cn';
|
|
20
|
+
import { useColorScheme } from '~/lib/useColorScheme';
|
|
21
|
+
import { NAV_THEME } from '~/theme';
|
|
14
22
|
|
|
15
23
|
export {
|
|
16
24
|
// Catch any errors thrown by the Layout component.
|
|
@@ -26,17 +34,26 @@ export default function RootLayout() {
|
|
|
26
34
|
key={`root-status-bar-${isDarkColorScheme ? 'light' : 'dark'}`}
|
|
27
35
|
style={isDarkColorScheme ? 'light' : 'dark'}
|
|
28
36
|
/>
|
|
37
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
29
38
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
39
|
+
<BottomSheetModalProvider>
|
|
40
|
+
<% } %>
|
|
41
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
42
|
+
<ActionSheetProvider>
|
|
43
|
+
<% } %>
|
|
30
44
|
<NavThemeProvider value={NAV_THEME[colorScheme]}>
|
|
31
45
|
<Stack screenOptions={SCREEN_OPTIONS}>
|
|
32
46
|
<Stack.Screen name="index" options={INDEX_OPTIONS} />
|
|
33
|
-
<Stack.Screen name="top-tabs" options={TOP_TABS_OPTIONS} />
|
|
34
|
-
<Stack.Screen name="drawer" options={DEFAULT_OPTIONS} />
|
|
35
|
-
<Stack.Screen name="bottom-tabs" options={DEFAULT_OPTIONS} />
|
|
36
47
|
<Stack.Screen name="modal" options={MODAL_OPTIONS} />
|
|
37
48
|
</Stack>
|
|
38
49
|
</NavThemeProvider>
|
|
50
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
51
|
+
</ActionSheetProvider>
|
|
52
|
+
<% } %>
|
|
53
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
54
|
+
</BottomSheetModalProvider>
|
|
39
55
|
</GestureHandlerRootView>
|
|
56
|
+
<% } %>
|
|
40
57
|
</>
|
|
41
58
|
);
|
|
42
59
|
}
|
|
@@ -66,20 +83,9 @@ function SettingsIcon() {
|
|
|
66
83
|
);
|
|
67
84
|
}
|
|
68
85
|
|
|
69
|
-
const TOP_TABS_OPTIONS = {
|
|
70
|
-
title: 'Top Tabs',
|
|
71
|
-
headerShadowVisible: false,
|
|
72
|
-
headerBackTitle: 'Back',
|
|
73
|
-
headerRight: () => <ThemeToggle />,
|
|
74
|
-
} as const;
|
|
75
|
-
|
|
76
86
|
const MODAL_OPTIONS = {
|
|
77
87
|
presentation: 'modal',
|
|
78
88
|
animation: 'fade_from_bottom', // for android
|
|
79
89
|
title: 'Settings',
|
|
80
90
|
headerRight: () => <ThemeToggle />,
|
|
81
91
|
} as const;
|
|
82
|
-
|
|
83
|
-
const DEFAULT_OPTIONS = {
|
|
84
|
-
headerShown: false,
|
|
85
|
-
};
|