-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
29 lines (27 loc) · 874 Bytes
/
App.js
File metadata and controls
29 lines (27 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React, { Component } from 'react';
import {
WebView,
View,
StatusBar
} from 'react-native';
import styles from './css/styles';
export default class App extends Component {
render() {
var HtmlCode = '<h1>React Native Codility</h1>' +
'<p>Welcome to React Native Codility for Webview components and It is used when you want to render web page to your mobile app inline.</p>' +
'<img src="https://raw.githubusercontent.com/AndroidCodility/StaggeredRecyclerView/master/images/six.jpg" alt="Image" width="100%" height="350" >';
return (
<View style={styles.WebViewStyle}>
<StatusBar
backgroundColor="#117864"
barStyle="light-content"
/>
<WebView
javaScriptEnabled={true}
domStorageEnabled={true}
source={{ html: HtmlCode }}
/>
</View>
);
}
}