React Native & Android?

后端 未结 7 1222
盖世英雄少女心
盖世英雄少女心 2020-12-13 06:21

I\'m contemplating on using React Native for a new web app. Is it possible to ship both iOS and Android apps using it?

I know that it\'s on the roadmap, but it\'s un

7条回答
  •  眼角桃花
    2020-12-13 06:33

    React Native is designed so that you can deploy to both iOS and Android. There is a caveat, of course.

    React Native has supported iOS for much longer, coming to Android only recently. So, there are some differences in terms of what is supported on each platform.

    For example, if you place borders on Text, they will show up on iOS, but not on Android. In order to overcome this, you need to place a View around the Text, and apply a border to that. Luckily, React Native makes it easy to integrate separate stylesheets for each platform (or even platform-specific styling on a single stylesheet).

    Support for Android is continuously evolving, so it will only be a matter of time before React Native for Android is on par with iOS. Nevertheless, this shouldn't deter you. In my experience, it's a great way to quickly develop for both platforms, and it does save some headaches.

提交回复
热议问题