Can we share the code between the webapp reaction and respond to the native application and get ready for the reaction

We have a stable version of the widget developed using actjs. We would like to develop a mobile version as well. It is better to develop using your own code and share the code between two applications, or it is better to develop the widget initially.

Keep in mind that we have experience in both (react and android dev), but we do not want to spend a lot of time developing the entire application again.

Are there any tools / resources to make this faster if we choose a responsive option?

Online Resources:

http://jkaufman.io/react-web-native-codesharing/

https://arielelkin.imtqy.com/articles/why-im-not-a-react-native-developer.html

https://medium.com/@felipecsl/thoughts-on-react-native-from-an-android-engineers-perspective-ea2bea5aa078

Hooray !!!

+8
source share
8 answers

Instagram, Tesla, AirBnB, Discord, Bloomberg have working applications written in React Native. I will let you decide for yourself whether he is ready for production, in your opinion.

While React Native allows you to reuse code between iOS and Android (we are currently creating a client application that - an application from external libraries - reuses more than 99% of the code between iOS and Android), it is not intended for code exchange with React. web applications,

Facebook React Native - , , , , .

, . , , Java Obj-C/Swift.

: 2018 Airbnb React Native . . , React Native. https://medium.com/airbnb-engineering/react-native-at-airbnb-f95aa460be1c

+11

-. . -.

React -, . "" - . . Redux React Native.

: . , .

+2

, , , - .
, - -.

0

, iOS, Android Windows:

  1. React Native Web - https://github.com/necolas/react-native-web
  2. ReactXP - https://github.com/microsoft/reactxp

https://microsoft.imtqy.com/reactxp/docs/faq.html, .

ReactXP React Native Web?

React Native for Web - , Twitter. ReactXP , React Native Web .

, . ReactXP - , React Native React, React Native Web - React Native - React Native iOS Android.

ReactXP , API, . ReactXP, , . React Native Web/iOS/Android, , , API .

0

, , https://dev.to/kylessg/a-sensible-approach-to-cross-platform-development-with-react-and-react -57pk.

, React React Native, , . , .

:

:

  • API
  • Polyfill API (, , , ..)
  • ,
  • HOCs

/:

  • /
0

, , . , , JavaScript, -.

, - - ( /) ().

, . GitHub -spa-jwt-- (*). "-" - common-logic, *.js. , . , .

(*) Disclimer: . -.

0
source

Source: https://habr.com/ru/post/1676744/


All Articles