banner OK

This commit is contained in:
bricezele 2021-06-10 00:49:59 +01:00
parent c882559f96
commit 79cbc8f1e4
14 changed files with 9252 additions and 1443 deletions

File diff suppressed because one or more lines are too long

16
package-lock.json generated
View File

@ -6235,6 +6235,22 @@
"yargs": "^13.2.2"
}
},
"react-native-webview": {
"version": "11.6.2",
"resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-11.6.2.tgz",
"integrity": "sha512-7e5ltLBgqt1mX0gdTTS2nFPIjfS6y300wqJ4rLWqU71lDO+8ZeayfsF5qo83qxo2Go74CtLnSeWae4pdGwUqYw==",
"requires": {
"escape-string-regexp": "2.0.0",
"invariant": "2.2.4"
},
"dependencies": {
"escape-string-regexp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="
}
}
},
"react-navigation": {
"version": "3.11.0",
"resolved": "https://registry.npmjs.org/react-navigation/-/react-navigation-3.11.0.tgz",

View File

@ -77,6 +77,7 @@
"react-native-tab-view": "^2.14.0",
"react-native-textinput-effects": "^0.5.1",
"react-native-vector-icons": "^6.5.0",
"react-native-webview": "^11.6.2",
"react-navigation": "3.11.0",
"react-navigation-drawer": "^1.4.0",
"react-navigation-material-bottom-tabs": "^1.0.0",

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
import {
Platform, StyleSheet, Text,
TouchableWithoutFeedback, View, TextInput,
WebView,
Button,
Animated, Dimensions, Image, PermissionsAndroid,
StatusBar, TouchableNativeFeedback, TouchableOpacity, BackHandler, Alert, ProgressBarAndroid
@ -14,7 +13,9 @@ import {responsiveHeight,responsiveWidth} from "react-native-responsive-dimensio
import BaseScreen from "../BaseScreen";
import Icon from "react-native-vector-icons/MaterialIcons";
import BlurOverlay, {openOverlay, closeOverlay} from 'react-native-blur-overlay'
import I18n from 'i18n-js'
import I18n from 'react-native-i18n';
import {WebView} from 'react-native-webview';
type Props = {};
const route = require("./../../route.json")
const theme = require('./../../utils/theme.json')
@ -27,6 +28,7 @@ export default class InterticielAds
statusBarHidden: true,
statusBarTextColorScheme: 'light',
};
static options(passProps) {
return {
statusBar: {
@ -59,13 +61,17 @@ export default class InterticielAds
{this.renderChild()}
</BlurOverlay>)
}
renderChild() {
return (<View style={styles.container}>
<WebView
source={{uri: 'https://ad-server.ilink-app.com/ad_display/zone1/zone4.html'}}
style={{width:responsiveHeight(90),flex:9}}
source={{uri: 'https://ilink-app.com/ads.html'}}
style={{
width: responsiveWidth(100),
marginTop: 37 + responsiveHeight(4),
backgroundColor: 'white'
}}
/>
<View>
<Button
@ -82,13 +88,16 @@ export default class InterticielAds
</View>)
}
componentDidMount() {
openOverlay()
}
async tryGetHtml() {
response = await fetch('https://ad-server.ilink-app.com/ad_display/zone1/zone4.html')
}
popOverLay() {
if (this.props.closeIntersticiel)
this.props.closeIntersticiel()
@ -100,7 +109,8 @@ export default class InterticielAds
const styles = StyleSheet.create({
container: {
flex: 1,
marginTop:30
marginTop: 30,
backgroundColor: "white"
},
parent: {
flex: 1,

View File

@ -1384,13 +1384,11 @@ class Home extends BaseScreen {
}}
/>*/
showInterticiel() {
if (this.state.isPubShow) {
return (<InterticielAds
closeIntersticiel={() => this.setState({isPubShow: false})}
navigation={this.props.navigation}
/>)
}
}
renderBottomHome() {
return (
@ -1709,6 +1707,7 @@ class Home extends BaseScreen {
}}
/>
{this.makeCardSearch()}
{this.showInterticiel()}
{this.makeSlidingUp()}
{this.makeDialogLoader()}
{this.makeDistanceDialog()}

View File

@ -3,6 +3,7 @@ import {
Animated,
AppState,
Platform,
ActivityIndicator,
ProgressBarAndroid,
StatusBar,
StyleSheet,