mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
45 lines
840 B
TypeScript
45 lines
840 B
TypeScript
import { StyleSheet, ViewStyle, TextStyle } from 'react-native';
|
|
|
|
interface Styles {
|
|
container: ViewStyle;
|
|
errorText: TextStyle;
|
|
errorTextTitle: TextStyle;
|
|
loadingOrErrorView: ViewStyle;
|
|
webView: ViewStyle;
|
|
loadingProgressBar: ViewStyle;
|
|
}
|
|
|
|
const styles = StyleSheet.create<Styles>({
|
|
container: {
|
|
flex: 1,
|
|
overflow: 'hidden',
|
|
},
|
|
loadingOrErrorView: {
|
|
position: 'absolute',
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
height: '100%',
|
|
width: '100%',
|
|
backgroundColor: 'white'
|
|
},
|
|
loadingProgressBar: {
|
|
height: 20,
|
|
},
|
|
errorText: {
|
|
fontSize: 14,
|
|
textAlign: 'center',
|
|
marginBottom: 2,
|
|
},
|
|
errorTextTitle: {
|
|
fontSize: 15,
|
|
fontWeight: '500',
|
|
marginBottom: 10,
|
|
},
|
|
webView: {
|
|
backgroundColor: '#ffffff',
|
|
},
|
|
});
|
|
|
|
export default styles;
|