@plusscommunities/pluss-webview-app 1.3.1 → 1.3.2
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.
- package/dist/module/components/WidgetLarge.js +43 -33
- package/dist/module/components/WidgetLarge.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +43 -33
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WidgetLarge.js +40 -32
- package/src/components/WidgetSmall.js +40 -32
|
@@ -45,26 +45,40 @@ class WidgetLarge extends Component {
|
|
|
45
45
|
|
|
46
46
|
if (options.isWebViewSeparatePage) {
|
|
47
47
|
return /*#__PURE__*/React.createElement(View, {
|
|
48
|
-
style: styles.
|
|
48
|
+
style: [styles.buttonContainer, {
|
|
49
|
+
backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2)
|
|
50
|
+
}]
|
|
49
51
|
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
-
style: styles.
|
|
51
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
style: styles.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, this.getTitle()))), /*#__PURE__*/React.createElement(
|
|
56
|
-
style: styles.buttonContainer
|
|
57
|
-
}, /*#__PURE__*/React.createElement(Components.InlineButton, {
|
|
52
|
+
style: styles.upperContainer
|
|
53
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: [styles.title, {
|
|
55
|
+
color: colourBrandingMain
|
|
56
|
+
}]
|
|
57
|
+
}, this.getTitle()))), /*#__PURE__*/React.createElement(Components.InlineButton, {
|
|
58
58
|
onPress: this.onGoToFullpage,
|
|
59
59
|
color: colourBrandingMain,
|
|
60
|
-
|
|
61
|
-
paddingTop: 6
|
|
62
|
-
},
|
|
63
|
-
textStyle: {
|
|
64
|
-
color: '#fff'
|
|
65
|
-
},
|
|
60
|
+
style: styles.button,
|
|
66
61
|
large: true
|
|
67
|
-
}, options.buttonText))
|
|
62
|
+
}, options.buttonText)); // return (
|
|
63
|
+
// <View style={styles.sectionContainer}>
|
|
64
|
+
// <View style={styles.sectionPadding}>
|
|
65
|
+
// <View style={styles.sectionHeading}>
|
|
66
|
+
// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
|
|
67
|
+
// </View>
|
|
68
|
+
// </View>
|
|
69
|
+
// <View style={styles.buttonContainer}>
|
|
70
|
+
// <Components.InlineButton
|
|
71
|
+
// onPress={this.onGoToFullpage}
|
|
72
|
+
// color={colourBrandingMain}
|
|
73
|
+
// touchableStyle={{ paddingTop: 6 }}
|
|
74
|
+
// textStyle={{ color: '#fff' }}
|
|
75
|
+
// large
|
|
76
|
+
// >
|
|
77
|
+
// {options.buttonText}
|
|
78
|
+
// </Components.InlineButton>
|
|
79
|
+
// </View>
|
|
80
|
+
// </View>
|
|
81
|
+
// );
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -90,28 +104,24 @@ const styles = StyleSheet.create({
|
|
|
90
104
|
alignItems: 'center',
|
|
91
105
|
justifyContent: 'center'
|
|
92
106
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
paddingHorizontal: 16,
|
|
99
|
-
paddingBottom: 6
|
|
107
|
+
buttonContainer: {
|
|
108
|
+
width: '100%',
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: 'center',
|
|
111
|
+
padding: 16
|
|
100
112
|
},
|
|
101
|
-
|
|
102
|
-
marginBottom: 4,
|
|
113
|
+
upperContainer: {
|
|
103
114
|
flexDirection: 'row',
|
|
104
|
-
|
|
115
|
+
alignItems: 'center',
|
|
105
116
|
justifyContent: 'space-between'
|
|
106
117
|
},
|
|
107
|
-
|
|
108
|
-
fontFamily: 'sf-
|
|
109
|
-
fontSize:
|
|
110
|
-
color: Colours.TEXT_DARKEST
|
|
118
|
+
title: {
|
|
119
|
+
fontFamily: 'sf-semibold',
|
|
120
|
+
fontSize: 16
|
|
111
121
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
122
|
+
button: {
|
|
123
|
+
paddingHorizontal: 40,
|
|
124
|
+
marginTop: 16
|
|
115
125
|
}
|
|
116
126
|
});
|
|
117
127
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","Text","StyleSheet","WebView","connect","_","Colours","Components","Services","WidgetLarge","constructor","props","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","styles","
|
|
1
|
+
{"version":3,"names":["React","Component","View","Text","StyleSheet","WebView","connect","_","Colours","Components","Services","WidgetLarge","constructor","props","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","styles","buttonContainer","backgroundColor","hexToRGBAstring","upperContainer","title","color","onGoToFullpage","button","buttonText","container","ListHeaderComponent","uri","webContainer","onLoadStart","onLoadEnd","create","flex","alignItems","justifyContent","width","padding","flexDirection","fontFamily","fontSize","paddingHorizontal","marginTop","mapStateToProps","getMainBrandingColourFromState","forwardRef"],"sources":["WidgetLarge.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { View, Text, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\nimport { connect } from 'react-redux';\nimport _ from 'lodash';\nimport { Colours, Components } from '../core.config';\nimport { Services } from '../feature.config';\n\nclass WidgetLarge extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n onLoadStart = () => {};\n onLoadEnd = () => {};\n\n onGoToFullpage = () => {\n const { options } = this.props;\n Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });\n };\n\n getTitle = () => {\n const { options } = this.props;\n if (options && !_.isEmpty(options.Title)) return options.Title;\n return 'Web View';\n };\n\n render() {\n const { options, colourBrandingMain } = this.props;\n if (options.isWebViewSeparatePage) {\n return (\n <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>\n <View style={styles.upperContainer}>\n <View>\n <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>\n </View>\n </View>\n <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>\n {options.buttonText}\n </Components.InlineButton>\n </View>\n );\n // return (\n // <View style={styles.sectionContainer}>\n // <View style={styles.sectionPadding}>\n // <View style={styles.sectionHeading}>\n // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n // </View>\n // </View>\n // <View style={styles.buttonContainer}>\n // <Components.InlineButton\n // onPress={this.onGoToFullpage}\n // color={colourBrandingMain}\n // touchableStyle={{ paddingTop: 6 }}\n // textStyle={{ color: '#fff' }}\n // large\n // >\n // {options.buttonText}\n // </Components.InlineButton>\n // </View>\n // </View>\n // );\n }\n return (\n <View style={styles.container}>\n {this.props.ListHeaderComponent}\n <WebView\n source={{ uri: options['webUrl'] }}\n style={styles.webContainer}\n onLoadStart={this.onLoadStart}\n onLoadEnd={this.onLoadEnd}\n />\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n webContainer: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n buttonContainer: {\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center',\n padding: 16,\n },\n upperContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n title: {\n fontFamily: 'sf-semibold',\n fontSize: 16,\n },\n button: {\n paddingHorizontal: 40,\n marginTop: 16,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetLarge);\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,IAAT,EAAeC,IAAf,EAAqBC,UAArB,QA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;EAwB/BhB,MAAM,EAAE;IACNiB,iBAAiB,EAAE,EADb;IAENC,SAAS,EAAE;EAFL;AAxBuB,CAAlB,CAAf;;AA8BA,MAAMC,eAAe,GAAG/B,KAAK,IAAI;EAC/B,OAAO;IACLE,kBAAkB,EAAEhB,OAAO,CAAC8C,8BAAR,CAAuChC,KAAvC;EADf,CAAP;AAGD,CAJD;;AAMA,eAAehB,OAAO,CAAC+C,eAAD,EAAkB,EAAlB,EAAsB,IAAtB,EAA4B;EAAEE,UAAU,EAAE;AAAd,CAA5B,CAAP,CAAyD5C,WAAzD,CAAf"}
|
|
@@ -45,26 +45,40 @@ class WidgetSmall extends Component {
|
|
|
45
45
|
|
|
46
46
|
if (options.isWebViewSeparatePage) {
|
|
47
47
|
return /*#__PURE__*/React.createElement(View, {
|
|
48
|
-
style: styles.
|
|
48
|
+
style: [styles.buttonContainer, {
|
|
49
|
+
backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2)
|
|
50
|
+
}]
|
|
49
51
|
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
-
style: styles.
|
|
51
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
style: styles.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, this.getTitle()))), /*#__PURE__*/React.createElement(
|
|
56
|
-
style: styles.buttonContainer
|
|
57
|
-
}, /*#__PURE__*/React.createElement(Components.InlineButton, {
|
|
52
|
+
style: styles.upperContainer
|
|
53
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: [styles.title, {
|
|
55
|
+
color: colourBrandingMain
|
|
56
|
+
}]
|
|
57
|
+
}, this.getTitle()))), /*#__PURE__*/React.createElement(Components.InlineButton, {
|
|
58
58
|
onPress: this.onGoToFullpage,
|
|
59
59
|
color: colourBrandingMain,
|
|
60
|
-
|
|
61
|
-
paddingTop: 6
|
|
62
|
-
},
|
|
63
|
-
textStyle: {
|
|
64
|
-
color: '#fff'
|
|
65
|
-
},
|
|
60
|
+
style: styles.button,
|
|
66
61
|
large: true
|
|
67
|
-
}, options.buttonText))
|
|
62
|
+
}, options.buttonText)); // return (
|
|
63
|
+
// <View style={styles.sectionContainer}>
|
|
64
|
+
// <View style={styles.sectionPadding}>
|
|
65
|
+
// <View style={styles.sectionHeading}>
|
|
66
|
+
// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
|
|
67
|
+
// </View>
|
|
68
|
+
// </View>
|
|
69
|
+
// <View style={styles.buttonContainer}>
|
|
70
|
+
// <Components.InlineButton
|
|
71
|
+
// onPress={this.onGoToFullpage}
|
|
72
|
+
// color={colourBrandingMain}
|
|
73
|
+
// touchableStyle={{ paddingTop: 6 }}
|
|
74
|
+
// textStyle={{ color: '#fff' }}
|
|
75
|
+
// large
|
|
76
|
+
// >
|
|
77
|
+
// {options.buttonText}
|
|
78
|
+
// </Components.InlineButton>
|
|
79
|
+
// </View>
|
|
80
|
+
// </View>
|
|
81
|
+
// );
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -92,28 +106,24 @@ const styles = StyleSheet.create({
|
|
|
92
106
|
alignItems: 'center',
|
|
93
107
|
justifyContent: 'center'
|
|
94
108
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
paddingHorizontal: 16,
|
|
101
|
-
paddingBottom: 6
|
|
109
|
+
buttonContainer: {
|
|
110
|
+
width: '100%',
|
|
111
|
+
alignItems: 'center',
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
padding: 16
|
|
102
114
|
},
|
|
103
|
-
|
|
104
|
-
marginBottom: 4,
|
|
115
|
+
upperContainer: {
|
|
105
116
|
flexDirection: 'row',
|
|
106
|
-
|
|
117
|
+
alignItems: 'center',
|
|
107
118
|
justifyContent: 'space-between'
|
|
108
119
|
},
|
|
109
|
-
|
|
110
|
-
fontFamily: 'sf-
|
|
111
|
-
fontSize:
|
|
112
|
-
color: Colours.TEXT_DARKEST
|
|
120
|
+
title: {
|
|
121
|
+
fontFamily: 'sf-semibold',
|
|
122
|
+
fontSize: 16
|
|
113
123
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
124
|
+
button: {
|
|
125
|
+
paddingHorizontal: 40,
|
|
126
|
+
marginTop: 16
|
|
117
127
|
}
|
|
118
128
|
});
|
|
119
129
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","Text","StyleSheet","WebView","connect","_","Colours","Components","Services","WidgetSmall","constructor","props","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","styles","
|
|
1
|
+
{"version":3,"names":["React","Component","View","Text","StyleSheet","WebView","connect","_","Colours","Components","Services","WidgetSmall","constructor","props","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","styles","buttonContainer","backgroundColor","hexToRGBAstring","upperContainer","title","color","onGoToFullpage","button","buttonText","container","uri","webContainer","onLoadStart","onLoadEnd","create","height","paddingTop","paddingBottom","flex","alignItems","justifyContent","width","padding","flexDirection","fontFamily","fontSize","paddingHorizontal","marginTop","mapStateToProps","getMainBrandingColourFromState","forwardRef"],"sources":["WidgetSmall.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { View, Text, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\nimport { connect } from 'react-redux';\nimport _ from 'lodash';\nimport { Colours, Components } from '../core.config';\nimport { Services } from '../feature.config';\n\nclass WidgetSmall extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n onLoadStart = () => {};\n onLoadEnd = () => {};\n\n onGoToFullpage = () => {\n const { options } = this.props;\n Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });\n };\n\n getTitle = () => {\n const { options } = this.props;\n if (options && !_.isEmpty(options.Title)) return options.Title;\n return 'Web View';\n };\n\n render() {\n const { options, colourBrandingMain } = this.props;\n if (options.isWebViewSeparatePage) {\n return (\n <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>\n <View style={styles.upperContainer}>\n <View>\n <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>\n </View>\n </View>\n <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>\n {options.buttonText}\n </Components.InlineButton>\n </View>\n );\n // return (\n // <View style={styles.sectionContainer}>\n // <View style={styles.sectionPadding}>\n // <View style={styles.sectionHeading}>\n // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n // </View>\n // </View>\n // <View style={styles.buttonContainer}>\n // <Components.InlineButton\n // onPress={this.onGoToFullpage}\n // color={colourBrandingMain}\n // touchableStyle={{ paddingTop: 6 }}\n // textStyle={{ color: '#fff' }}\n // large\n // >\n // {options.buttonText}\n // </Components.InlineButton>\n // </View>\n // </View>\n // );\n }\n return (\n <View style={styles.container}>\n <WebView\n source={{ uri: options['webUrl'] }}\n style={styles.webContainer}\n onLoadStart={this.onLoadStart}\n onLoadEnd={this.onLoadEnd}\n />\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n height: 300,\n paddingTop: 8,\n paddingBottom: 8,\n },\n webContainer: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n buttonContainer: {\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center',\n padding: 16,\n },\n upperContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n title: {\n fontFamily: 'sf-semibold',\n fontSize: 16,\n },\n button: {\n paddingHorizontal: 40,\n marginTop: 16,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetSmall);\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgB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F,CAjBe;EAsB/BhB,KAAK,EAAE;IACLoB,UAAU,EAAE,aADP;IAELC,QAAQ,EAAE;EAFL,CAtBwB;EA0B/BlB,MAAM,EAAE;IACNmB,iBAAiB,EAAE,EADb;IAENC,SAAS,EAAE;EAFL;AA1BuB,CAAlB,CAAf;;AAgCA,MAAMC,eAAe,GAAGjC,KAAK,IAAI;EAC/B,OAAO;IACLE,kBAAkB,EAAEhB,OAAO,CAACgD,8BAAR,CAAuClC,KAAvC;EADf,CAAP;AAGD,CAJD;;AAMA,eAAehB,OAAO,CAACiD,eAAD,EAAkB,EAAlB,EAAsB,IAAtB,EAA4B;EAAEE,UAAU,EAAE;AAAd,CAA5B,CAAP,CAAyD9C,WAAzD,CAAf"}
|
package/package.json
CHANGED
|
@@ -30,25 +30,37 @@ class WidgetLarge extends Component {
|
|
|
30
30
|
const { options, colourBrandingMain } = this.props;
|
|
31
31
|
if (options.isWebViewSeparatePage) {
|
|
32
32
|
return (
|
|
33
|
-
<View style={styles.
|
|
34
|
-
<View style={styles.
|
|
35
|
-
<View
|
|
36
|
-
<Text style={styles.
|
|
33
|
+
<View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>
|
|
34
|
+
<View style={styles.upperContainer}>
|
|
35
|
+
<View>
|
|
36
|
+
<Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>
|
|
37
37
|
</View>
|
|
38
38
|
</View>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color={colourBrandingMain}
|
|
43
|
-
touchableStyle={{ paddingTop: 6 }}
|
|
44
|
-
textStyle={{ color: '#fff' }}
|
|
45
|
-
large
|
|
46
|
-
>
|
|
47
|
-
{options.buttonText}
|
|
48
|
-
</Components.InlineButton>
|
|
49
|
-
</View>
|
|
39
|
+
<Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>
|
|
40
|
+
{options.buttonText}
|
|
41
|
+
</Components.InlineButton>
|
|
50
42
|
</View>
|
|
51
43
|
);
|
|
44
|
+
// return (
|
|
45
|
+
// <View style={styles.sectionContainer}>
|
|
46
|
+
// <View style={styles.sectionPadding}>
|
|
47
|
+
// <View style={styles.sectionHeading}>
|
|
48
|
+
// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
|
|
49
|
+
// </View>
|
|
50
|
+
// </View>
|
|
51
|
+
// <View style={styles.buttonContainer}>
|
|
52
|
+
// <Components.InlineButton
|
|
53
|
+
// onPress={this.onGoToFullpage}
|
|
54
|
+
// color={colourBrandingMain}
|
|
55
|
+
// touchableStyle={{ paddingTop: 6 }}
|
|
56
|
+
// textStyle={{ color: '#fff' }}
|
|
57
|
+
// large
|
|
58
|
+
// >
|
|
59
|
+
// {options.buttonText}
|
|
60
|
+
// </Components.InlineButton>
|
|
61
|
+
// </View>
|
|
62
|
+
// </View>
|
|
63
|
+
// );
|
|
52
64
|
}
|
|
53
65
|
return (
|
|
54
66
|
<View style={styles.container}>
|
|
@@ -73,28 +85,24 @@ const styles = StyleSheet.create({
|
|
|
73
85
|
alignItems: 'center',
|
|
74
86
|
justifyContent: 'center',
|
|
75
87
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
paddingHorizontal: 16,
|
|
82
|
-
paddingBottom: 6,
|
|
88
|
+
buttonContainer: {
|
|
89
|
+
width: '100%',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
padding: 16,
|
|
83
93
|
},
|
|
84
|
-
|
|
85
|
-
marginBottom: 4,
|
|
94
|
+
upperContainer: {
|
|
86
95
|
flexDirection: 'row',
|
|
87
|
-
|
|
96
|
+
alignItems: 'center',
|
|
88
97
|
justifyContent: 'space-between',
|
|
89
98
|
},
|
|
90
|
-
|
|
91
|
-
fontFamily: 'sf-
|
|
92
|
-
fontSize:
|
|
93
|
-
color: Colours.TEXT_DARKEST,
|
|
99
|
+
title: {
|
|
100
|
+
fontFamily: 'sf-semibold',
|
|
101
|
+
fontSize: 16,
|
|
94
102
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
103
|
+
button: {
|
|
104
|
+
paddingHorizontal: 40,
|
|
105
|
+
marginTop: 16,
|
|
98
106
|
},
|
|
99
107
|
});
|
|
100
108
|
|
|
@@ -30,25 +30,37 @@ class WidgetSmall extends Component {
|
|
|
30
30
|
const { options, colourBrandingMain } = this.props;
|
|
31
31
|
if (options.isWebViewSeparatePage) {
|
|
32
32
|
return (
|
|
33
|
-
<View style={styles.
|
|
34
|
-
<View style={styles.
|
|
35
|
-
<View
|
|
36
|
-
<Text style={styles.
|
|
33
|
+
<View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>
|
|
34
|
+
<View style={styles.upperContainer}>
|
|
35
|
+
<View>
|
|
36
|
+
<Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>
|
|
37
37
|
</View>
|
|
38
38
|
</View>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color={colourBrandingMain}
|
|
43
|
-
touchableStyle={{ paddingTop: 6 }}
|
|
44
|
-
textStyle={{ color: '#fff' }}
|
|
45
|
-
large
|
|
46
|
-
>
|
|
47
|
-
{options.buttonText}
|
|
48
|
-
</Components.InlineButton>
|
|
49
|
-
</View>
|
|
39
|
+
<Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>
|
|
40
|
+
{options.buttonText}
|
|
41
|
+
</Components.InlineButton>
|
|
50
42
|
</View>
|
|
51
43
|
);
|
|
44
|
+
// return (
|
|
45
|
+
// <View style={styles.sectionContainer}>
|
|
46
|
+
// <View style={styles.sectionPadding}>
|
|
47
|
+
// <View style={styles.sectionHeading}>
|
|
48
|
+
// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
|
|
49
|
+
// </View>
|
|
50
|
+
// </View>
|
|
51
|
+
// <View style={styles.buttonContainer}>
|
|
52
|
+
// <Components.InlineButton
|
|
53
|
+
// onPress={this.onGoToFullpage}
|
|
54
|
+
// color={colourBrandingMain}
|
|
55
|
+
// touchableStyle={{ paddingTop: 6 }}
|
|
56
|
+
// textStyle={{ color: '#fff' }}
|
|
57
|
+
// large
|
|
58
|
+
// >
|
|
59
|
+
// {options.buttonText}
|
|
60
|
+
// </Components.InlineButton>
|
|
61
|
+
// </View>
|
|
62
|
+
// </View>
|
|
63
|
+
// );
|
|
52
64
|
}
|
|
53
65
|
return (
|
|
54
66
|
<View style={styles.container}>
|
|
@@ -74,28 +86,24 @@ const styles = StyleSheet.create({
|
|
|
74
86
|
alignItems: 'center',
|
|
75
87
|
justifyContent: 'center',
|
|
76
88
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
paddingHorizontal: 16,
|
|
83
|
-
paddingBottom: 6,
|
|
89
|
+
buttonContainer: {
|
|
90
|
+
width: '100%',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
justifyContent: 'center',
|
|
93
|
+
padding: 16,
|
|
84
94
|
},
|
|
85
|
-
|
|
86
|
-
marginBottom: 4,
|
|
95
|
+
upperContainer: {
|
|
87
96
|
flexDirection: 'row',
|
|
88
|
-
|
|
97
|
+
alignItems: 'center',
|
|
89
98
|
justifyContent: 'space-between',
|
|
90
99
|
},
|
|
91
|
-
|
|
92
|
-
fontFamily: 'sf-
|
|
93
|
-
fontSize:
|
|
94
|
-
color: Colours.TEXT_DARKEST,
|
|
100
|
+
title: {
|
|
101
|
+
fontFamily: 'sf-semibold',
|
|
102
|
+
fontSize: 16,
|
|
95
103
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
button: {
|
|
105
|
+
paddingHorizontal: 40,
|
|
106
|
+
marginTop: 16,
|
|
99
107
|
},
|
|
100
108
|
});
|
|
101
109
|
|