create-expo-stack 2.7.0-next.0c1b767 → 2.7.0-next.3029b3a
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 +6 -6
- package/build/templates/base/package.json.ejs +29 -2
- package/build/templates/packages/nativewindui/app/_layout.tsx.ejs +19 -8
- package/build/templates/packages/nativewindui/app/index.tsx.ejs +565 -12
- 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/nativewind-ui/Text.tsx.ejs +26 -0
- package/build/templates/packages/nativewindui/components/nativewind-ui/Toggle.tsx.ejs +17 -0
- package/build/templates/packages/nativewindui/lib/useHeaderSearchBar.tsx.ejs +1 -1
- package/build/types/types.d.ts +2 -0
- package/build/utilities/configureProjectFiles.js +41 -11
- 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/build/templates/packages/nativewindui/components/{ThemeToggle.tsx.ejs → nativewind-ui/ThemeToggle.tsx.ejs} +0 -0
package/README.md
CHANGED
|
@@ -158,17 +158,17 @@ Thanks go to these wonderful people:
|
|
|
158
158
|
</a>
|
|
159
159
|
</td>
|
|
160
160
|
<td align="center">
|
|
161
|
-
<a href="https://github.com/
|
|
162
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
161
|
+
<a href="https://github.com/mrzachnugent">
|
|
162
|
+
<img src="https://avatars.githubusercontent.com/u/63797719?v=4" width="100;" alt="mrzachnugent"/>
|
|
163
163
|
<br />
|
|
164
|
-
<sub><b>
|
|
164
|
+
<sub><b>Zach Nugent</b></sub>
|
|
165
165
|
</a>
|
|
166
166
|
</td>
|
|
167
167
|
<td align="center">
|
|
168
|
-
<a href="https://github.com/
|
|
169
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
168
|
+
<a href="https://github.com/saimon24">
|
|
169
|
+
<img src="https://avatars.githubusercontent.com/u/2514208?v=4" width="100;" alt="saimon24"/>
|
|
170
170
|
<br />
|
|
171
|
-
<sub><b>
|
|
171
|
+
<sub><b>Simon Grimm</b></sub>
|
|
172
172
|
</a>
|
|
173
173
|
</td>
|
|
174
174
|
<td align="center">
|
|
@@ -20,16 +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",
|
|
25
24
|
"@shopify/flash-list": "1.6.3",
|
|
26
25
|
"class-variance-authority": "^0.7.0",
|
|
27
26
|
"clsx": "^2.1.0",
|
|
28
27
|
"expo-dev-client": "~3.3.8",
|
|
29
28
|
"tailwind-merge": "^2.2.1",
|
|
29
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('actionable-text')) { %>
|
|
30
30
|
"react-native-uitextview": "^1.1.4",
|
|
31
|
+
<% } %>
|
|
31
32
|
"react-native-pager-view": "6.2.3",
|
|
32
|
-
|
|
33
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('date-picker')) { %>
|
|
34
|
+
"@react-native-community/datetimepicker": "7.6.1",
|
|
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
|
+
<% } %>
|
|
33
60
|
<% } %>
|
|
34
61
|
|
|
35
62
|
<% if (props.stylingPackage?.name === "restyle") { %>
|
|
@@ -2,12 +2,18 @@ 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';
|
|
8
14
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
9
15
|
|
|
10
|
-
import { ThemeToggle } from '~/components/ThemeToggle';
|
|
16
|
+
import { ThemeToggle } from '~/components/nativewind-ui/ThemeToggle';
|
|
11
17
|
import { cn } from '~/lib/cn';
|
|
12
18
|
import { useColorScheme } from '~/lib/useColorScheme';
|
|
13
19
|
import { NAV_THEME } from '~/theme';
|
|
@@ -27,15 +33,24 @@ export default function RootLayout() {
|
|
|
27
33
|
style={isDarkColorScheme ? 'light' : 'dark'}
|
|
28
34
|
/>
|
|
29
35
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
36
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
37
|
+
<BottomSheetModalProvider>
|
|
38
|
+
<% } %>
|
|
39
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
40
|
+
<ActionSheetProvider>
|
|
41
|
+
<% } %>
|
|
30
42
|
<NavThemeProvider value={NAV_THEME[colorScheme]}>
|
|
31
43
|
<Stack screenOptions={SCREEN_OPTIONS}>
|
|
32
44
|
<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
45
|
<Stack.Screen name="modal" options={MODAL_OPTIONS} />
|
|
37
46
|
</Stack>
|
|
38
47
|
</NavThemeProvider>
|
|
48
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
49
|
+
</ActionSheetProvider>
|
|
50
|
+
<% } %>
|
|
51
|
+
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
52
|
+
</BottomSheetModalProvider>
|
|
53
|
+
<% } %>
|
|
39
54
|
</GestureHandlerRootView>
|
|
40
55
|
</>
|
|
41
56
|
);
|
|
@@ -79,7 +94,3 @@ const MODAL_OPTIONS = {
|
|
|
79
94
|
title: 'Settings',
|
|
80
95
|
headerRight: () => <ThemeToggle />,
|
|
81
96
|
} as const;
|
|
82
|
-
|
|
83
|
-
const DEFAULT_OPTIONS = {
|
|
84
|
-
headerShown: false,
|
|
85
|
-
};
|