1.0.36 • Published 7 years ago
rn-webbrowser-with-back v1.0.36
rn-webbrower-with-back
I am using the https://github.com/fahadhaq/react-native-webbrowser modified on top of it to consume default webview props for webview. Credit goes to https://github.com/d-a-n/react-native-webbrowser https://github.com/magrinj/react-native-webbrowser https://github.com/fahadhaq/react-native-webbrowser
A cross-platform (iOS / Android), full-featured in-app web browser component for React Native that is highly customizable. Currently you can hide the address-, status- and toolbar. Additionally the foreground and background colors can be modified.
Install
npm i rn-webbrower-with-back --saveUsage
Here is an extensive overview of the component usage.
class SampleApp extends Component {
render() {
return (
<View style={{ paddingTop: 20, flex: 1 }}>
<Webbrowser
url="https://your-url.com"
hideRefreshButton={false}
hideToolbar={false}
hideAddressBar={false}
hideStatusBar={false}
foregroundColor={"#efefef"}
backgroundColor={"#333"}
webviewProps={{}}
/>
</View>
);
}
}Props
url - stringrequired, web addresshideAddressBar - booloptional, hides the address bar / address inputhideStatusBar - booloptional, hides the status bar / site titlehideToolbar - booloptional, hides the toolbar (nav bar)hideRefreshButton - booloptional, hides just the refresh button from the toolbarhideActivityIndicator - booloptional, hides the activity indicator (loading) overlayforegroundColor - stringoptional, sets the forground color of text and icon elementsbackgroundColor - stringoptional, sets the background coloronNavigationStateChange - function(navState)optional, url change callbackonShouldStartLoadWithRequest - function(event)optional, return false if the request should be stoppedwebviewProps - object- optional, props for webviewhttps://facebook.github.io/react-native/docs/webview.html(please look for documentation)
Screenshots
1.0.36
7 years ago