Skip to content

A cross-platform (iOS / Android), full-featured, highly customizable web browser module for React Native apps.

License

Notifications You must be signed in to change notification settings

patrikmolnar/react-native-webbrowser

This branch is up to date with d-a-n/react-native-webbrowser:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ea7d4f8 · Jun 21, 2016

History

17 Commits
Mar 10, 2016
Feb 26, 2016
Feb 26, 2016
Feb 26, 2016
Feb 26, 2016
Feb 26, 2016
Feb 26, 2016
Feb 26, 2016
Feb 24, 2016
Mar 10, 2016
Feb 26, 2016
Mar 10, 2016
Feb 26, 2016
Mar 18, 2016
May 1, 2016
Feb 26, 2016

Repository files navigation

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 react-native-webbrowser --save

Usage

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"
                    hideHomeButton={false}
                    hideToolbar={false}
                    hideAddressBar={false}
                    hideStatusBar={false}
                    foregroundColor={'#efefef'}
                    backgroundColor={'#333'}
                />
                
            </View>
        );
    }
}

Props

  • url - string required, web address
  • hideAddressBar - bool optional, hides the address bar / address input
  • hideStatusBar - bool optional, hides the status bar / site title
  • hideToolbar - bool optional, hides the toolbar (nav bar)
  • hideHomeButton - bool optional, hides just the home button from the toolbar
  • hideActivityIndicator - booloptional, hides the activity indicator (loading) overlay
  • foregroundColor - string optional, sets the forground color of text and icon elements
  • backgroundColor - string optional, sets the background color
  • onNavigationStateChange - function(navState) optional, url change callback
  • onShouldStartLoadWithRequest - function(event) optional, return false if the request should be stopped

Screenshots

   

About

A cross-platform (iOS / Android), full-featured, highly customizable web browser module for React Native apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 74.4%
  • Objective-C 21.3%
  • Java 4.3%