Skip to content

Commit

Permalink
rn-webview compiles now and style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Murray committed Feb 9, 2022
1 parent 26ae244 commit 3f82d29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
18 changes: 9 additions & 9 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ const webpackConfig = {
},

// Rule for react-native-web-webview
// {
// test: /postMock.html$/,
// use: {
// loader: 'file-loader',
// options: {
// name: '[name].[ext]',
// },
// },
// },
{
test: /postMock.html$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
},
},
},

// Gives the ability to load local images
{
Expand Down
11 changes: 3 additions & 8 deletions src/pages/wallet/statementModal.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import _ from 'underscore';
import React, {Component} from 'react';
import {View, TouchableOpacity} from 'react-native';
import React from 'react';
import PropTypes from 'prop-types';
import Header from '../../components/Header';
import Navigation from '../../libs/Navigation/Navigation';
import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize';
import CONST from '../../CONST';
import Modal from '../../components/Modal/index.ios';
import themeColors from '../../styles/themes/default';
import {WebView} from 'react-native-webview';
import HeaderWithCloseButton from '../../components/HeaderWithCloseButton';
import ScreenWrapper from '../../components/ScreenWrapper';
import {WebView} from 'react-native-webview';

const propTypes = {
/** The route object passed to this page from the navigator */
Expand Down Expand Up @@ -42,7 +38,7 @@ const WalletStatementModal = props => (
/>
<WebView
originWhitelist={['*']}
source={{ html: '<h1>Hello world</h1>' }}
source={{html: '<h1>Hello world</h1>'}}
/>
</Modal>
</ScreenWrapper>
Expand All @@ -51,4 +47,3 @@ const WalletStatementModal = props => (
WalletStatementModal.propTypes = propTypes;
WalletStatementModal.displayName = 'WalletStatementModal';
export default withLocalize(WalletStatementModal);

0 comments on commit 3f82d29

Please sign in to comment.