react-everywhere / re-start

react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg
MIT License
1.3k stars 85 forks source link

update react-native-web #63

Open zetekla opened 6 years ago

zetekla commented 6 years ago

Please update react-native-web since it is very outdated (1.6.0 now) and provide a Hook or a way to perform platform specific code

eg:

if(platform==='web') {

} else if(platform ==='android' || platform ==='ios'){

}
piranna commented 6 years ago

You need to check Platform.OS in your code.