mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
* Apple Pay support in ios Webview * Apple Pay example * rename prop to enableApplePay * disable js evaluation if enableApplePay set to true * documentation update for apple pay support
24 lines
562 B
TypeScript
24 lines
562 B
TypeScript
import React, {Component} from 'react';
|
|
import {View} from 'react-native';
|
|
|
|
import WebView from 'react-native-webview';
|
|
|
|
type Props = {};
|
|
type State = {};
|
|
|
|
export default class Alerts extends Component<Props, State> {
|
|
state = {};
|
|
|
|
render() {
|
|
return (
|
|
<View style={{ flex: 1 }}>
|
|
<WebView
|
|
enableApplePay={true}
|
|
source={{uri: "https://applepaydemo.apple.com/"}}
|
|
automaticallyAdjustContentInsets={false}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
}
|