jorgenskogmo
jorgenskogmo

Reputation: 35

Hybrid (React and ReactNative)

We're planning a project that targets both iOS and Browser, and are curious to how we can share as much as possible between the two, using React.

Can we build the project in (normal) React and somehow switch to React-native when building for iOS (and later Android)?

Upvotes: 0

Views: 196

Answers (1)

kevindeleon
kevindeleon

Reputation: 1924

React and React Native aren't 'write once, run anywhere' frameworks, as Tom Occhino said...it's more of a 'learn once, write anywhere' technology. That being said, your developers will be familiar with the syntax/best practices after writing your first implementation, and then should be able to smoothly transition and apply those same techniques to the browser or mobile app.

Much of your implementation and how they all function together will largely depend on the API you are getting your data from. If your API/data source is solid...then the rest will be a piece of cake!

So to answer your question...sure you can build the project in React and then switch to React Native when building your mobile apps. In fact, that's what the folks who are working tirelessly on the React/React Native teams are hoping you will do. Will you be able to use the exact same code? No.

Upvotes: 2

Related Questions