You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,13 @@ Since you probably don't want to blind-code the whole plugin use the following c
31
31
npm run app
32
32
```
33
33
34
-
This will create an app inside `/app` where except `/app/App.js` all files are gitignored. Here you can try out various use cases of the plugin and use this as a way to demonstrate the plugin.
34
+
This will create an app inside `/app` where except `/app/App.tsx` all files are gitignored. Here you can try out various use cases of the plugin and use this as a way to demonstrate the plugin. The app can be started as usual by running `npm run ios` or `npm run android` inside the `/app` folder.
35
35
36
36
```
37
37
npm run watch
38
38
```
39
39
40
-
Running the above will watch the plugin source code for any kind of changes, rebuild and copy over the changes to the app which will then automatically hot-reload.
40
+
Running the above in the root folder will watch the plugin source code for any kind of changes, rebuild and copy over the changes to the app which will then automatically hot-reload.
41
41
42
42
Don't forget to always check your plugin both on Android and iOS even though your not using native code the provided components might still differ depending on the platform.
43
43
@@ -50,10 +50,6 @@ npm test
50
50
npm run test:watch # Keep watching and retesting on changes.
51
51
```
52
52
53
-
## TypeScript
54
-
55
-
Flow the type checker native to React Native has largely failed to gain popularity and also lags behind TypeScript in many other important aspects. Since a good chunk of bigger React Native projects are written in TypeScript plugins should provide type definitions.
56
-
57
53
## Troubleshooting
58
54
59
55
If you have issues building the app for iOS try the following
0 commit comments