Sharing Code Between React and React Native - React Native - July 2018

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 3

  • @toomuchtruth
    @toomuchtruth 6 лет назад +3

    Nice, informative talk, thanks. Was wondering about what's the latest with React Native Web & full code sharing in the React space. I still think that sharing UI code can work. In many cases the responsive web layout on a phone will have significant overlap with the app layout. Creating a button on Android, IOS & web uses different syntax, but most times the developer just wants the same, simple functionality. Why not unify the UI elements that you can? It's a shame that React Native Web hasn't caught on. Suppose this problem needs a ton of cash to be dumped on it to finally solve it adequately.

  • @mehmetkaplan2173
    @mehmetkaplan2173 5 лет назад

    You can try the repo that I tried to prepare:
    mehmetkaplan.github.io/react-spa-jwt-authentication-boilerplate/
    This has a step by step guideline that enables to share common logic between react and react-native applications. It aims to differentiate only in the presentation layer. Other than that all logic is compiled to be shared between applications.