S
S
Stepan Turchenko2021-02-06 21:29:32
React Native
Stepan Turchenko, 2021-02-06 21:29:32

How to create your own react native preset?

How to create your own preset for a react native project.
Let's say I use react native projects with the same configurations, and each project has to be reconfigured:

-expo minimal bare workflow

- in the android/gradle.properties file, write
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize =512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

-include and remove some ios android permissions

-include react native code push (to update app over the air), which requires config
> ./ios/liverpool/info.plist
> ./android/app/scr/main/res/values/string.xml

- re-include the same libraries
react navigation / react native firebase / enzyme / ...

- you have to re-create the same type of directory for the location
of files / hooks / selectors / navigation screens / redux tool cut store / pictures / fonts / tools classes /

- copy the redux store configuration (redux tool kit createSlice )

- copy package json scripts for various commands
launch / create typedoc to dock / code push update / development launches, etc. Of

course, you can just copy all this, but how to do it using the latest versions of all libraries used.
(The first option is to copy the project and update all npm dependencies, but what other options are there,
like npx create-react-native --custom-presset ./patch/to/dir )

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question