React + React Custom Starter Kit

I am going to develop a web + mobile application using React and React Native. I would like to share as much code as possible between React and React Native. I searched for some starter kits but found only este . However, this seems redundant to me, because it has too many dependencies (also I could not get it to work for Android - when I fix some error, I encounter another).

I would like to have only React + React Native + Redux + web selection, etc. Are there any other alternatives? Or at least very simple applications that I could use?

+5
source share
2 answers

Have you checked an awesome non-action list of your own ?

As I said in this thread , if you follow the component / container template using Redux; You can reuse a lot of code.

The sample encourages you to split each presentation code into comopnent. The container contains all the logic.

Then, when you want to reuse the code, you just need to rewrite the component.

Here is a great explanation of how to implement it.

Alternatively, you can check out React-native-web . This allows you to encode inactive-native for the browser.

+4
source

Update: Now I know why there are almost no starter kits that combine React + React Native. The reason is that combining Web React and React Native is not recommended. Just create two separate applications, you will save a lot of headaches. For those who are still interested in combining the two platforms, check out React Native for Web instead .

So, in the end, I created my own running kit. You can find it here: https://github.com/gina-system/react-starter

0
source

All Articles