No Description

WebView.styles.ts 1020B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { StyleSheet, ViewStyle, TextStyle } from 'react-native';
  2. interface Styles {
  3. container: ViewStyle;
  4. errorContainer: ViewStyle;
  5. errorText: TextStyle;
  6. errorTextTitle: TextStyle;
  7. hidden: ViewStyle;
  8. loadingView: ViewStyle;
  9. webView: ViewStyle;
  10. loadingProgressBar: ViewStyle;
  11. }
  12. const styles = StyleSheet.create<Styles>({
  13. container: {
  14. flex: 1,
  15. overflow: 'hidden',
  16. },
  17. errorContainer: {
  18. flex: 1,
  19. justifyContent: 'center',
  20. alignItems: 'center',
  21. backgroundColor: 'white',
  22. },
  23. hidden: {
  24. height: 0,
  25. flex: 0, // disable 'flex:1' when hiding a View
  26. },
  27. loadingView: {
  28. flex: 1,
  29. justifyContent: 'center',
  30. alignItems: 'center',
  31. backgroundColor: 'white',
  32. },
  33. loadingProgressBar: {
  34. height: 20,
  35. },
  36. errorText: {
  37. fontSize: 14,
  38. textAlign: 'center',
  39. marginBottom: 2,
  40. },
  41. errorTextTitle: {
  42. fontSize: 15,
  43. fontWeight: '500',
  44. marginBottom: 10,
  45. },
  46. webView: {
  47. backgroundColor: '#ffffff',
  48. },
  49. });
  50. export default styles;