tsrntemp 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +6 -11
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,25 +1,21 @@
1
- ### 本模板使用TS
1
+ #### 本模板使用TS
2
+ ### 使用方法
3
+ ```
4
+ npx react-native init ProjectName --template tsrntemp
5
+ ```
6
+
2
7
 
3
8
  > 文件目录
4
9
  > > src
5
10
  > > > assets`静态资源文件夹`
6
-
7
11
  > > > components`公用组件文件夹`
8
-
9
12
  > > > config`配置文件夹`
10
-
11
13
  > > > iconfont`图标字体文件夹`
12
-
13
14
  > > > pages`所有页面文件夹`
14
-
15
15
  > > > route`路由页面文件夹`
16
-
17
16
  > > > types`类型申明文件夹`
18
-
19
17
  > > > utils`工具类文件夹`
20
18
 
21
-
22
-
23
19
  ##### 新增路由须配置两个地方
24
20
  - types/routeTypes
25
21
 
@@ -34,7 +30,6 @@ export type RootStackParamList = {
34
30
  ```
35
31
  import BottomTab from "route/BottomTab" //引入所需组件
36
32
 
37
-
38
33
  const RouteArr: Array<RouteType> = [
39
34
  {
40
35
  name: 'BottomTab', //匹配第一步配置时的名称
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsrntemp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "android": "react-native run-android",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "keywords": ["react-native","template"],
13
13
  "homepage": "https://github.com/wanngzelin/RNTemplate",
14
+
14
15
  "dependencies": {
15
16
  "@react-native-masked-view/masked-view": "^0.2.6",
16
17
  "@react-navigation/bottom-tabs": "^6.3.1",