Find your content:

Search form

You are here

Detect Android or iOS using react native

 
Share
Try the below one.
 
var {Platform} = React;

if (Platform.OS === 'ios')
  return (
    <Component1 />
)
else
  return (
    <Component2 />
)

My Block Status

My Block Content