UNPKG

react-native-input-prompt

Version:

A cross-platform user input prompt component for React Native.

102 lines (98 loc) 1.7 kB
import { StyleSheet, Platform, Dimensions } from "react-native"; export default StyleSheet.create({ screenOverlay: { height: Dimensions.get("window").height, backgroundColor: "black", opacity: 0.8 }, dialogPrompt: { ...Platform.select({ ios: { opacity: 0.9, backgroundColor: "rgb(222,222,222)", borderRadius: 15 }, android: { borderRadius: 5, backgroundColor: "white" } }), marginHorizontal: 20, marginTop: 150, padding: 10, flexDirection: "column", justifyContent: "space-between", alignItems: "center" }, title: { fontWeight: "bold", fontSize: 26, color: "black" }, textInput: { height: 40, width: "100%", paddingHorizontal: 10, textAlignVertical: "bottom", margin: 20, ...Platform.select({ ios: { borderRadius: 15, backgroundColor: "rgba(166, 170, 172, 0.9)" }, android: {} }) }, buttonsOuterView: { flexDirection: "row", ...Platform.select({ ios: {}, android: { justifyContent: "flex-end" } }), width: "100%" }, buttonsDivider: { ...Platform.select({ ios: { width: 1, backgroundColor: "rgba(0,0,0,0.5)" }, android: { width: 20 } }) }, buttonsInnerView: { flexDirection: "row", ...Platform.select({ ios: { borderTopWidth: 0.5, flex: 1 }, android: {} }) }, button: { flexDirection: "column", justifyContent: "center", alignItems: "center", ...Platform.select({ ios: { flex: 1 }, android: {} }), marginTop: 5, padding: 10 }, cancelButtonText: { fontSize: 16, fontWeight: "600", color: "black" }, submitButtonText: { color: "rgb(0, 129, 251)", fontWeight: "600", fontSize: 16 } });