Skip to content

Commit d257d44

Browse files
authored
bump react native version (#336)
* πŸ“š(bump version): bump version to 2.3.1 and improve contents with automatic version finder * ✨(bump version): bump version to 0.71.3 and ts support by default * πŸ’Ž(lint): remove unused import * πŸ™(ci): remove unused cp command * ♻️(refactoring): re-add dot files * chore(plugin): fix lint errors --------- Co-authored-by: jeremydolle <[email protected]>
1 parent d00ead8 commit d257d44

File tree

193 files changed

+8041
-8350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+8041
-8350
lines changed

β€Ž.github/workflows/w-run-linters.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ jobs:
1111
- name: Run linters
1212
run: |
1313
cd template
14-
cp _prettierrc.js .prettierrc.js
15-
cp _eslintrc.js .eslintrc.js
1614
yarn lint

β€Ž.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,3 @@ yarn-lock.json
1818
package-lock.json
1919

2020
node_modules
21-
22-
# Ignore specific files copying by RN CLI
23-
template/.gitignore
24-
template/.gitattributes
25-
template/.eslintrc.js
26-
template/.flowconfig
27-
template/.buckconfig
28-
template/.prettierrc.js
29-
template/.watchmanconfig
-46.5 KB
Loading

β€Ždocumentation/docs/1_Introduction.md renamed to β€Ždocumentation/docs/1_Introduction.mdx

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ slug: /Introduction
33
title: What's in the box❓
44
---
55

6+
import deps from '../../template/package.json'
7+
export const Version = ({name, dev}) => (
8+
<span>
9+
{deps[!!dev ? 'devDependencies' : 'dependencies'][name]}
10+
</span>
11+
);
12+
613
<div align="center">
714
<img width="300" height="300" src={require('./assets/TOM.png').default} />
815
</div>
916

1017
This project is a [React Native](https://facebook.github.io/react-native/) boilerplate that can be used to kick-start a mobile application.
1118

12-
The boilerplate provides **an architecture optimized for building solid cross-platform mobile applications** through separation of concerns between the UI and business logic.
19+
The boilerplate provides **an architecture optimized for building solid cross-platform mobile applications** through separation of concerns between the UI and business logic.
1320
We made this full documentation so that each piece of code that lands in your application can be understood and used.
1421

1522

@@ -26,46 +33,47 @@ The driving goal of the architecture of the boilerplate is separation of concern
2633

2734
- **Presentational components are separated from containers**.
2835

29-
Presentational components are small components that are concerned with *how things look*.
36+
Presentational components are small components that are concerned with *how things look*.
3037
Containers usually define whole application screens and are concerned with *how things work*: they include presentational components and wire everything together.
31-
38+
3239
If you are interested you can [read more about it here](https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0).
3340

3441
- **State is managed using global [Redux](https://redux.js.org/) stores**.
3542

3643
When applications grow, sharing state and its changes can become very hard. Questions like "How can I access this data?" or "When did this change?" are common, just like passing data around components just to be able to use it in nested components.
37-
44+
3845
With Redux, state is shared using global *stores*, and changes are predictable: *actions* are applied by *reducers* to the state. While the pattern can be a bit much for small projects, the clear separation of responsibilities and predictability helps with bigger applications.
39-
46+
4047
If you are interested you can [read more about it here](https://redux.js.org/introduction/motivation).
41-
42-
## Content 🧳
4348

44-
The boilerplate contains:
49+
## Content 🧳
4550

46-
- a [React Native](https://facebook.github.io/react-native/) (v**0.65.1**) application (in "[ejected](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md)" mode to allow using dependencies that rely on native code)
47-
- a [clear directory layout](#directory-layout) to provide a base architecture for your application
48-
- [Redux](https://redux.js.org/) (v**4.1.1**) to help manage state
49-
- [Redux Persist](https://github.com/rt2zz/redux-persist) (v**6.0.0**) to persist the Redux state
50-
- [React Navigation](https://reactnavigation.org/) (v**6**) to handle routing and navigation in the app, with a splash screen setup by default
51-
- [redux toolkit](https://redux-toolkit.js.org/) (v**1.6.1**) to make redux easier
52-
- [axios](https://github.com/axios/axios) (v**0.21.4**) to make API calls
51+
The boilerplate contains a [clear directory layout](#directory-layout) to provide a base architecture for your application with some essential dependencies:
52+
- [React Native](https://facebook.github.io/react-native/) (v**<Version name="react-native"/>**) application (in "[ejected](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md)" mode to allow using dependencies that rely on native code)
53+
- [Redux](https://redux.js.org/) (v**<Version name="react-redux"/>**) to help manage state
54+
- [Redux Toolkit (Query)](https://redux-toolkit.js.org/) (v**<Version name="@reduxjs/toolkit"/>**) to improve redux api calls
55+
- [Redux Persist](https://github.com/rt2zz/redux-persist) (v**<Version name="redux-persist"/>**) to persist the Redux state
56+
- [React Native mmkv](https://github.com/mrousavy/react-native-mmkv) (v**<Version name="react-native-mmkv"/>**) which is an efficient, small mobile key-value storage
57+
- [React Navigation](https://reactnavigation.org/) (v**<Version name="@react-navigation/native"/>**) to handle routing and navigation in the app, with a splash screen setup by default
58+
- [React I18Next](https://github.com/i18next/react-i18next) (v**<Version name="react-i18next"/>**) to handle internationalization in your app
5359
- [prettier](https://prettier.io/) and [eslint](https://eslint.org/) preconfigured for React Native
54-
- [react-native-flipper](https://fbflipper.com/) (v**2.0.0**) to debug react-native and [redux-flipper](https://github.com/jk-gan/redux-flipper) (v**1.4.2**) to debug redux
60+
- [react-native-flipper](https://fbflipper.com/) (v**<Version name="react-native-flipper" dev/>**) to debug react-native,
61+
[redux-flipper](https://github.com/jk-gan/redux-flipper) (v**<Version name="redux-flipper" dev/>**) to debug redux,
62+
[navigation devtool](https://www.npmjs.com/package/@react-navigation/devtools) (v**<Version name="@react-navigation/devtools" dev/>**) to debug navigation,
63+
5564

5665
The boilerplate includes an example (displaying fake user data) from UI components to the business logic. The example is easy to remove so that it doesn't get in the way.
5766

5867
## Directory layout πŸ—‚οΈ
5968

60-
- `src/Assets`: assets (image, audio files, ...) used by the application
61-
- `src/Components`: presentational components
62-
- `src/Config`: configuration of the application
63-
- `src/Containers`: container components, i.e. the application's screens
64-
- `src/Navigators`: react navigation navigators
65-
- `src/Services`: application services, e.g. API clients
66-
- `src/Stores`: redux [actions, reducers and stores](https://redux.js.org/basics)
67-
- `src/Translations`: application strings, you can add languages files and be able to translate your app strings
68-
- `src/Theme`: base styles for the application
69+
- `src/components`: presentational components
70+
- `src/hooks`: hooks of the app, you will have the `useTheme` hook to access the theme
71+
- `src/navigators`: react navigation navigators
72+
- `src/screens`: container components, i.e. the application's screens
73+
- `src/services`: application services, e.g. API clients
74+
- `src/stores`: redux [actions, reducers and stores](https://redux.js.org/basics)
75+
- `src/theme`: base styles for the application
76+
- `src/translations`: application strings, you can add languages files and be able to translate your app strings
6977

7078
## Updates πŸ•
7179

β€Ždocumentation/docs/2_Getting Started/2_2_Configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Configuration
44
---
55

66
## Change the appicon
7-
To help generate appicons, you can use an online tool like [appicon](https://appicon.co/) to generate for both iOS and Android all icons and image sets.
7+
To help generate appicons, you can use an online tool like [appicon](https://appicon.co/) or [easyappicon](https://easyappicon.com/) to generate for both iOS and Android all icons and image sets.
88

99
### iOS 🍎
1010
To change the appicon of the iOS application, you need to replace all the content of
-63.1 KB
Loading

β€Ždocumentation/docs/assets/RTW.png

-104 KB
Binary file not shown.
-1.99 MB
Loading

β€Ždocumentation/docs/assets/TOM.png

-1.89 MB
Loading
-10.5 KB
Loading

0 commit comments

Comments
Β (0)