react native get OS

JavaScript
  const design = Platform.select({
    android: {
      header: true
    },
    ios: {
	  header: false
    },
  });
Source

Also in JavaScript: