twinbloc-rn-starter 0.1.0
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/bin/cli.js +113 -0
- package/package.json +40 -0
- package/template/react-native-starter/.vscode/extensions.json +1 -0
- package/template/react-native-starter/.vscode/settings.json +7 -0
- package/template/react-native-starter/README.md +50 -0
- package/template/react-native-starter/app/_layout.tsx +5 -0
- package/template/react-native-starter/app/index.tsx +86 -0
- package/template/react-native-starter/app.json +50 -0
- package/template/react-native-starter/assets/images/android-icon-background.png +0 -0
- package/template/react-native-starter/assets/images/android-icon-foreground.png +0 -0
- package/template/react-native-starter/assets/images/android-icon-monochrome.png +0 -0
- package/template/react-native-starter/assets/images/favicon.png +0 -0
- package/template/react-native-starter/assets/images/icon.png +0 -0
- package/template/react-native-starter/assets/images/partial-react-logo.png +0 -0
- package/template/react-native-starter/assets/images/react-logo.png +0 -0
- package/template/react-native-starter/assets/images/react-logo@2x.png +0 -0
- package/template/react-native-starter/assets/images/react-logo@3x.png +0 -0
- package/template/react-native-starter/assets/images/splash-icon.png +0 -0
- package/template/react-native-starter/eslint.config.js +10 -0
- package/template/react-native-starter/package-lock.json +12858 -0
- package/template/react-native-starter/package.json +48 -0
- package/template/react-native-starter/src/state/useCounterStore.ts +15 -0
- package/template/react-native-starter/tsconfig.json +17 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-starter",
|
|
3
|
+
"main": "expo-router/entry",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "expo start",
|
|
7
|
+
"reset-project": "node ./scripts/reset-project.js",
|
|
8
|
+
"android": "expo run:android",
|
|
9
|
+
"ios": "expo run:ios",
|
|
10
|
+
"web": "expo start --web",
|
|
11
|
+
"lint": "expo lint"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@expo/vector-icons": "^15.0.3",
|
|
15
|
+
"@react-navigation/bottom-tabs": "^7.4.0",
|
|
16
|
+
"@react-navigation/elements": "^2.6.3",
|
|
17
|
+
"@react-navigation/native": "^7.1.8",
|
|
18
|
+
"expo": "~54.0.33",
|
|
19
|
+
"expo-constants": "~18.0.13",
|
|
20
|
+
"expo-font": "~14.0.11",
|
|
21
|
+
"expo-haptics": "~15.0.8",
|
|
22
|
+
"expo-image": "~3.0.11",
|
|
23
|
+
"expo-linking": "~8.0.11",
|
|
24
|
+
"expo-router": "~6.0.23",
|
|
25
|
+
"expo-splash-screen": "~31.0.13",
|
|
26
|
+
"expo-status-bar": "~3.0.9",
|
|
27
|
+
"expo-symbols": "~1.0.8",
|
|
28
|
+
"expo-system-ui": "~6.0.9",
|
|
29
|
+
"expo-web-browser": "~15.0.10",
|
|
30
|
+
"react": "19.1.0",
|
|
31
|
+
"react-dom": "19.1.0",
|
|
32
|
+
"react-native": "0.81.5",
|
|
33
|
+
"react-native-gesture-handler": "~2.28.0",
|
|
34
|
+
"react-native-reanimated": "~4.1.1",
|
|
35
|
+
"react-native-safe-area-context": "~5.6.0",
|
|
36
|
+
"react-native-screens": "~4.16.0",
|
|
37
|
+
"react-native-web": "~0.21.0",
|
|
38
|
+
"react-native-worklets": "0.5.1",
|
|
39
|
+
"zustand": "^5.0.11"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/react": "~19.1.0",
|
|
43
|
+
"eslint": "^9.25.0",
|
|
44
|
+
"eslint-config-expo": "~10.0.0",
|
|
45
|
+
"typescript": "~5.9.2"
|
|
46
|
+
},
|
|
47
|
+
"private": true
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
|
|
3
|
+
type CounterState = {
|
|
4
|
+
count: number;
|
|
5
|
+
increment: () => void;
|
|
6
|
+
decrement: () => void;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const useCounterStore = create<CounterState>((set) => ({
|
|
11
|
+
count: 0,
|
|
12
|
+
increment: () => set((state) => ({ count: state.count + 1 })),
|
|
13
|
+
decrement: () => set((state) => ({ count: state.count - 1 })),
|
|
14
|
+
reset: () => set({ count: 0 })
|
|
15
|
+
}));
|