From 3e72bfa56c860826429a842f6c128d78d4a930db Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 1 Jun 2017 19:47:08 -0400 Subject: react-native-web port of fmf app --- client/src/lib/components/webViewModal.js | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 client/src/lib/components/webViewModal.js (limited to 'client/src/lib/components/webViewModal.js') diff --git a/client/src/lib/components/webViewModal.js b/client/src/lib/components/webViewModal.js new file mode 100644 index 0000000..0796470 --- /dev/null +++ b/client/src/lib/components/webViewModal.js @@ -0,0 +1,56 @@ +import React, { Component } from 'react' +import { + StyleSheet, + WebView, + View, + ActivityIndicator, +} from 'react-native' +import Modal from 'react-native-modal' + +import Close from './close' + +export default class WebViewModal extends Component { + render() { + return ( + + { + return ( + + + + ) + }} + /> + + + ) + } +} + +const styles = StyleSheet.create({ + modal: { + marginLeft: 0, + marginRight: 0, + marginBottom: 0, + marginTop: 0, + paddingTop: 60, + backgroundColor: 'black', + }, + webview: { + flex: 1, + justifyContent: 'flex-start', + alignItems: 'flex-start', + }, + loadingContainer: { + backgroundColor: 'black', + flex: 1, + height: '100%', + width: '100%', + justifyContent: 'center', + alignItems: 'center', + }, +}) -- cgit v1.2.3-70-g09d2