No Description

WebView.tsx 695B

1234567891011121314151617181920
  1. import React from 'react';
  2. import { View } from 'react-native';
  3. import { IOSWebViewProps, AndroidWebViewProps } from './WebViewTypes';
  4. export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
  5. // This "dummy" WebView is to render something for unsupported platforms,
  6. // like for example Expo SDK "web" platform. It matches the previous react-native
  7. // implementation which is produced by Expo SDK 37.0.0.1 implementation, with
  8. // similar interface than the native ones have.
  9. const WebView: React.FunctionComponent<WebViewProps> = () => (
  10. <View style={{
  11. alignSelf: 'flex-start',
  12. borderColor: 'rgb(255, 0, 0)',
  13. borderWidth: 1
  14. }} />
  15. );
  16. export { WebView };
  17. export default WebView;