@wireservers-ui/react-natives 2.0.2-rc.0 → 2.0.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/CHANGELOG.md +7 -0
- package/README.md +20 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -55,16 +55,21 @@ React-Natives is a collection of 70+ production-ready, accessible React Native c
|
|
|
55
55
|
|
|
56
56
|
Use this for the fastest first-time setup in a new Expo app.
|
|
57
57
|
|
|
58
|
+
1. Create a new Expo app.
|
|
59
|
+
2. Enter the app folder.
|
|
60
|
+
3. Install `@wireservers-ui/react-natives`.
|
|
61
|
+
4. Run `init`.
|
|
62
|
+
5. Start Expo web.
|
|
63
|
+
|
|
58
64
|
```bash
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
npx @wireservers-ui/react-natives@2.0.1 init
|
|
65
|
+
npx create-expo-app@latest wsui --template blank-typescript
|
|
66
|
+
cd wsui
|
|
67
|
+
npm install @wireservers-ui/react-natives
|
|
68
|
+
npx react-natives init
|
|
64
69
|
npm exec expo -- start --clear --web
|
|
65
70
|
```
|
|
66
71
|
|
|
67
|
-
This sequence keeps all generated files inside `
|
|
72
|
+
This sequence keeps all generated files inside `wsui`.
|
|
68
73
|
No setup files are written outside the generated project folder when run exactly as above.
|
|
69
74
|
|
|
70
75
|
If `npm exec` prompts to install `expo`, answer `y`.
|
|
@@ -86,8 +91,8 @@ npm exec expo -- start --clear --web
|
|
|
86
91
|
Always run the init command from inside your generated project folder:
|
|
87
92
|
|
|
88
93
|
```bash
|
|
89
|
-
cd
|
|
90
|
-
npx
|
|
94
|
+
cd wsui
|
|
95
|
+
npx react-natives init
|
|
91
96
|
```
|
|
92
97
|
|
|
93
98
|
Do not run `init` from the repository root.
|
|
@@ -99,6 +104,12 @@ What `init` does for you:
|
|
|
99
104
|
- Creates setup files only if missing
|
|
100
105
|
- Never overwrites existing files in your project
|
|
101
106
|
|
|
107
|
+
To overwrite generated setup files intentionally, use:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npx react-natives init --force
|
|
111
|
+
```
|
|
112
|
+
|
|
102
113
|
### 2. Manual Setup (Detailed)
|
|
103
114
|
|
|
104
115
|
Use this path if you want full control over every file.
|
|
@@ -106,7 +117,7 @@ Use this path if you want full control over every file.
|
|
|
106
117
|
#### Step A: Install packages
|
|
107
118
|
|
|
108
119
|
```bash
|
|
109
|
-
npm install @wireservers-ui/react-natives
|
|
120
|
+
npm install @wireservers-ui/react-natives
|
|
110
121
|
npm install nativewind babel-preset-expo tailwindcss tailwind-variants tailwind-merge react-native-reanimated react-native-worklets react-native-svg react-native-web react-dom
|
|
111
122
|
```
|
|
112
123
|
|
package/package.json
CHANGED