説明なし

WebView.styles.ts 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. backgroundColor: 'white',
  17. },
  18. errorContainer: {
  19. flex: 1,
  20. justifyContent: 'center',
  21. alignItems: 'center',
  22. backgroundColor: 'white',
  23. },
  24. hidden: {
  25. height: 0,
  26. flex: 0, // disable 'flex:1' when hiding a View
  27. display: 'none',
  28. },
  29. loadingView: {
  30. flex: 1,
  31. justifyContent: 'center',
  32. alignItems: 'center',
  33. backgroundColor: 'white',
  34. },
  35. loadingProgressBar: {
  36. height: 20,
  37. },
  38. errorText: {
  39. fontSize: 14,
  40. textAlign: 'center',
  41. marginBottom: 2,
  42. },
  43. errorTextTitle: {
  44. fontSize: 15,
  45. fontWeight: '500',
  46. marginBottom: 10,
  47. },
  48. webView: {
  49. backgroundColor: '#ffffff',
  50. },
  51. });
  52. export default styles;