Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {
AppState,
Platform,
StatusBar,
ScrollView,
StyleSheet,
Text,
View,
} from "react-native";
// $FlowFixMe
let platformPermissions: string[] = Object.values(
Platform.OS === "ios"
? RNPermissions.IOS_PERMISSIONS
: RNPermissions.ANDROID_PERMISSIONS,
).filter(permission => permission !== "SIRI");
const statusColors: { [PermissionStatus]: string } = {
granted: "#43a047",
denied: "#ff9800",
never_ask_again: "#e53935",
unavailable: "#cfd8dc",
};
const statusIcons: { [PermissionStatus]: string } = {
granted: "check-circle",
denied: "error",
never_ask_again: "cancel",
unavailable: "lens",
};