jrshikoku/StatusbarDetect.js
harukin-DeskMini 2a3fd7774d linter調整
2022-09-28 03:19:04 +09:00

11 lines
278 B
JavaScript

import React from "react";
import { Platform, StatusBar, View } from "react-native";
export default function StatusbarDetect() {
if (Platform.OS == "ios") {
return <StatusBar barStyle="dark-content" />;
} else if (Platform.OS == "android") {
return <View />;
}
}