Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React + React Native starter kit

Tags:

I am going to develop a web + mobile application using React and React Native. I'd like to share as much code as possible between React and React Native. I was looking for some starter kits, but found only este. However, for me, it seems to be an overkill as it has too many dependencies (also I wasn't able to make it work for Android - when I fix some error, I run into another one).

I'd like to have just React + React Native + Redux + web bundling etc. Are there any other alternatives? Or at least very simple example apps that I could use?

like image 432
Honza Kalfus Avatar asked Jul 26 '16 13:07

Honza Kalfus


1 Answers

Did you check the awesome React-native list ?

As I said in this thread, as long as you follow the component / container pattern with Redux; you are able to reuse a lot of code.

The pattern encourages you to separate every presentational code into the comopnent. The container holds all the logic.

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

Here is a great explanation on how to implement it.

Also, you may want to check React-native-web. It allows you to code in react-native for the .... browser.

like image 145
Zacaria Avatar answered Sep 28 '22 02:09

Zacaria