@plusscommunities/pluss-webview-app 7.0.1 → 8.0.1-auth.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +1,51 @@
1
- import React, { Component } from 'react';
2
- import { View, StyleSheet } from 'react-native';
3
- import { WebView } from 'react-native-webview';
4
- import { Components } from '../core.config';
5
- import { Services } from '../feature.config';
1
+ import React, { Component } from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ import { WebView } from "react-native-webview";
4
+ import { Components } from "../core.config";
5
+ import { Services } from "../feature.config";
6
6
 
7
7
  class WebViewPage extends Component {
8
- constructor(props) {
9
- super(props);
10
- this.state = {};
11
- }
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = {};
11
+ }
12
12
 
13
- onLoadStart = () => {};
14
- onLoadEnd = () => {};
13
+ onLoadStart = () => {};
14
+ onLoadEnd = () => {};
15
15
 
16
- onPressBack = () => {
17
- Services.navigation.goBack();
18
- };
16
+ onPressBack = () => {
17
+ Services.navigation.goBack();
18
+ };
19
19
 
20
- render() {
21
- const { url, headerTitle } = this.props;
22
- return (
23
- <View style={styles.container}>
24
- <Components.Header leftIcon="angle-left" onPressLeft={this.onPressBack} text={headerTitle} />
25
- <WebView source={{ uri: url }} style={styles.webContainer} onLoadStart={this.onLoadStart} onLoadEnd={this.onLoadEnd} />
26
- </View>
27
- );
28
- }
20
+ render() {
21
+ const { url, headerTitle } = this.props;
22
+ return (
23
+ <View style={styles.container}>
24
+ <Components.Header
25
+ leftIcon="angle-left"
26
+ onPressLeft={this.onPressBack}
27
+ text={headerTitle}
28
+ />
29
+ <WebView
30
+ source={{ uri: url }}
31
+ style={styles.webContainer}
32
+ onLoadStart={this.onLoadStart}
33
+ onLoadEnd={this.onLoadEnd}
34
+ />
35
+ </View>
36
+ );
37
+ }
29
38
  }
30
39
 
31
40
  const styles = StyleSheet.create({
32
- container: {
33
- flex: 1,
34
- },
35
- webContainer: {
36
- flex: 1,
37
- alignItems: 'center',
38
- justifyContent: 'center',
39
- },
41
+ container: {
42
+ flex: 1,
43
+ },
44
+ webContainer: {
45
+ flex: 1,
46
+ alignItems: "center",
47
+ justifyContent: "center",
48
+ },
40
49
  });
41
50
 
42
51
  export default WebViewPage;