jrshikoku/StatusbarDetect.tsx
harukin-expo-dev-env ad98372df8 ファイルの分離
2024-09-09 10:41:18 +00:00

13 lines
312 B
TypeScript

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