UNPKG

react-native-mobile-browser

Version:

A cross-platform (iOS / Android), full-featured in-app web browser component for React Native that is highly customizable. Suitable with latest RN

86 lines (80 loc) 2.02 kB
import { StyleSheet } from 'react-native'; const HEADER = '#3b5998'; const BGWASH = 'rgba(255,255,255,0.8)'; const ELEMENT_MARGIN = 8; const SHADOW_COLOR = '#333'; const SHADOW_OPACITY = 0.4; const SHADOW_RADIUS = 1; export default StyleSheet.create({ container: { flex: 1, backgroundColor: HEADER, }, header: { transform: [{'translate':[0,0,1]}], /* bring view to front */ shadowColor:SHADOW_COLOR, shadowOpacity:SHADOW_OPACITY, shadowRadius:SHADOW_RADIUS, shadowOffset: { height:1, width: 0 }, }, addressBarRow: { flexDirection: 'row', marginTop: ELEMENT_MARGIN/2, marginBottom: ELEMENT_MARGIN/2, marginLeft: ELEMENT_MARGIN, marginRight: ELEMENT_MARGIN, }, webView: { backgroundColor: BGWASH, height: 350, }, addressBarTextInput: { backgroundColor: BGWASH, borderColor: 'transparent', borderRadius: 3, borderWidth: 1, height: 24, paddingLeft: 10, flex: 1, fontSize: 14, }, navButton: { width: 20, padding: 3, marginRight: 3, alignItems: 'center', justifyContent: 'center', backgroundColor: BGWASH, borderColor: 'transparent', borderRadius: 3, }, statusBar: { marginLeft:ELEMENT_MARGIN, marginRight:ELEMENT_MARGIN, height: 22, }, statusBarText: { flex:1, color: 'white', fontSize: 10, }, spinner: { width: 20, marginRight: 6, }, toolBar: { shadowColor:SHADOW_COLOR, shadowOpacity:SHADOW_OPACITY, shadowRadius:SHADOW_RADIUS, shadowOffset: { height:0, width: 0 }, flexDirection:'row', justifyContent:'space-around', paddingTop:ELEMENT_MARGIN, paddingBottom:ELEMENT_MARGIN }, toolBarIcons: { width:20, height:20, opacity: 0.9 } });