You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A cross-platform (iOS / Android), full-featured web browser module for React Native apps.
2
+
A cross-platform (iOS / Android), full-featured in-app web browser component for React Native that is highly highly customizable. Currently you can hide the address-, status- and toolbar. Aditionally the foreground and background colors can be modified.
3
+
4
+
## Install
5
+
6
+
```sh
7
+
npm i react-native-webbrowser --save
8
+
```
9
+
10
+
## Usage
11
+
12
+
Here is an extensive overview of the component usage.
13
+
14
+
```jsx
15
+
16
+
classSampleAppextendsComponent {
17
+
render() {
18
+
return (
19
+
<View style={{paddingTop:20, flex:1}}>
20
+
21
+
<Webbrowser
22
+
url="https://your-url.com"
23
+
hideHomeButton={false}
24
+
hideToolbar={false}
25
+
hideAddressBar={false}
26
+
hideStatusBar={false}
27
+
foregroundColor={'#efefef'}
28
+
backgroundColor={'#333'}
29
+
/>
30
+
31
+
</View>
32
+
);
33
+
}
34
+
}
35
+
```
36
+
37
+
## Props
38
+
39
+
*`url - string` required, web address
40
+
*`hideAddressBar - bool` optional, hides the address bar / address input
41
+
*`hideStatusBar - bool` optional, hides the status bar / site title
42
+
*`hideToolbar - bool` optional, hides the toolbar (nav bar)
43
+
*`hideHomeButton - bool` optional, hides just the home button from the toolbar
44
+
*`foregroundColor - string` optional, sets the forground color of text and icon elements
45
+
*`backgroundColor - string` optional, sets the background color
0 commit comments