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
This template is a react-native boilerplate project template to start with for new projects.
3
4
@@ -8,24 +9,51 @@ This template is a react-native boilerplate project template to start with for n
8
9
*[✅]**TDD ready:** Includes setup for [Jest](https://jestjs.io/), [Enzyme](https://enzymejs.github.io/enzyme/), [Detox](https://github.com/wix/Detox) for component and e2e testing.
9
10
*[✅]**Lint ready:** ESlint.
10
11
11
-
###Installation
12
+
## Installation
12
13
In the desired folder where you want to create the project, open command line and type:
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
20
-
).
22
+
## How to use
23
+
This template uses functional components and [React Hooks](https://reactjs.org/docs/hooks-intro.html), but feel free to use class components, or use your preferred state-management library.
24
+
25
+
### Structure
26
+
The template structure is as follows:
27
+
28
+
#### src
29
+
The `src` folder is where all our development files/folders reside.
30
+
31
+
-##### App.tsx
32
+
App entry point and starting screen, where your App function is defined.
21
33
34
+
-##### Navigation.tsx
35
+
Contains basic navigation stack for main -> details screens.
22
36
37
+
-##### screens
38
+
Folder to contains app screens (pages). I structured it to contain each screen in its separate folder, like **main, detail** folders where the screen.tsx and screenStyle.ts files exist.
23
39
40
+
-##### model
41
+
Contains data objects so to map data retrieved from server or DB to those objects.
24
42
25
-
* Beside the app configurations, command lines commands:
26
-
1- npm login/adduser: Username, password, email
27
-
2- Your account should be Org, and login with Org name
28
-
3- Add members to the team
29
-
4- Go to cmd, then
30
-
>`npm publish --access public`
43
+
-##### services
44
+
Contains API or server calling related classes, and includes an API.ts file as an abstract class to retrieve data from server.
31
45
46
+
-##### helper
47
+
Other helper classes or functions like abstract DB layer.
48
+
49
+
-##### commons
50
+
To contain any shared components or app generic functionality like app common styles.
51
+
52
+
53
+
#### TDD
54
+
There are a very good tutorials ([here](https://learntdd.in/react-native/)) covering how to use TDD with react-native so you can apply on this template.
55
+
56
+
57
+
58
+
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
This template is a react-native boilerplate project template to start with for new projects.
3
4
@@ -8,23 +9,51 @@ This template is a react-native boilerplate project template to start with for n
8
9
*[✅]**TDD ready:** Includes setup for [Jest](https://jestjs.io/), [Enzyme](https://enzymejs.github.io/enzyme/), [Detox](https://github.com/wix/Detox) for component and e2e testing.
9
10
*[✅]**Lint ready:** ESlint.
10
11
11
-
###Installation
12
+
## Installation
12
13
In the desired folder where you want to create the project, open command line and type:
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
20
-
).
22
+
## How to use
23
+
This template uses functional components and [React Hooks](https://reactjs.org/docs/hooks-intro.html), but feel free to use class components, or use your preferred state-management library.
24
+
25
+
### Structure
26
+
The template structure is as follows:
27
+
28
+
#### src
29
+
The `src` folder is where all our development files/folders reside.
30
+
31
+
-##### App.tsx
32
+
App entry point and starting screen, where your App function is defined.
33
+
34
+
-##### Navigation.tsx
35
+
Contains basic navigation stack for main -> details screens.
21
36
37
+
-##### screens
38
+
Folder to contains app screens (pages). I structured it to contain each screen in its separate folder, like **main, detail** folders where the screen.tsx and screenStyle.ts files exist.
22
39
40
+
-##### model
41
+
Contains data objects so to map data retrieved from server or DB to those objects.
23
42
43
+
-##### services
44
+
Contains API or server calling related classes, and includes an API.ts file as an abstract class to retrieve data from server.
24
45
25
-
* Beside the app configurations, command lines commands:
26
-
1- npm login/adduser: Username, password, email
27
-
2- Your account should be Org, and login with Org name
28
-
3- Add members to the team
29
-
4- Go to cmd, then
30
-
>`npm publish --access public`
46
+
-##### helper
47
+
Other helper classes or functions like abstract DB layer.
48
+
49
+
-##### commons
50
+
To contain any shared components or app generic functionality like app common styles.
51
+
52
+
53
+
#### TDD
54
+
There are a very good tutorials ([here](https://learntdd.in/react-native/)) covering how to use TDD with react-native so you can apply on this template.
55
+
56
+
57
+
58
+
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
0 commit comments