1
0
mirror of https://github.com/tooot-app/app synced 2025-03-16 03:20:13 +01:00
tooot/src/stacks/Shared/Webview.jsx
Zhiyuan Zheng 97e9ceca5a
Commit
2020-10-29 14:52:28 +01:00

18 lines
311 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import { WebView } from 'react-native-webview'
// Update page title
export default function Webview ({
route: {
params: { uri }
}
}) {
return <WebView source={{ uri: uri }} />
}
Webview.propTypes = {
uri: PropTypes.string.isRequired
}