UNPKG

@questlabs/react-native-sdk

Version:
9 lines (7 loc) 522 B
import { Dimensions, StyleSheet } from "react-native"; const windowWidth = Dimensions.get('window').width; const toastMargin = 10; // Define the desired margin export const styles = StyleSheet.create({ toastMainView: { flex: 1, paddingVertical:12,flexDirection: 'row', alignItems: "center", width: windowWidth - (toastMargin * 2), backgroundColor: 'white', elevation: 10, paddingHorizontal: 10, marginHorizontal: toastMargin, borderRadius: 10 }, toastMessageTextSyle: { color: "#098849",marginRight:8} })