banner OK
This commit is contained in:
parent
c882559f96
commit
79cbc8f1e4
File diff suppressed because one or more lines are too long
|
@ -6235,6 +6235,22 @@
|
||||||
"yargs": "^13.2.2"
|
"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": {
|
"react-navigation": {
|
||||||
"version": "3.11.0",
|
"version": "3.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-navigation/-/react-navigation-3.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-navigation/-/react-navigation-3.11.0.tgz",
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
"react-native-tab-view": "^2.14.0",
|
"react-native-tab-view": "^2.14.0",
|
||||||
"react-native-textinput-effects": "^0.5.1",
|
"react-native-textinput-effects": "^0.5.1",
|
||||||
"react-native-vector-icons": "^6.5.0",
|
"react-native-vector-icons": "^6.5.0",
|
||||||
|
"react-native-webview": "^11.6.2",
|
||||||
"react-navigation": "3.11.0",
|
"react-navigation": "3.11.0",
|
||||||
"react-navigation-drawer": "^1.4.0",
|
"react-navigation-drawer": "^1.4.0",
|
||||||
"react-navigation-material-bottom-tabs": "^1.0.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 |
|
@ -1,32 +1,34 @@
|
||||||
import React,{Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Platform, StyleSheet, Text,
|
Platform, StyleSheet, Text,
|
||||||
TouchableWithoutFeedback, View, TextInput,
|
TouchableWithoutFeedback, View, TextInput,
|
||||||
WebView,
|
|
||||||
Button,
|
Button,
|
||||||
Animated, Dimensions, Image, PermissionsAndroid,
|
Animated, Dimensions, Image, PermissionsAndroid,
|
||||||
StatusBar, TouchableNativeFeedback, TouchableOpacity,BackHandler,Alert,ProgressBarAndroid
|
StatusBar, TouchableNativeFeedback, TouchableOpacity, BackHandler, Alert, ProgressBarAndroid
|
||||||
, NativeModules, Picker, FlatList
|
, NativeModules, Picker, FlatList
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import {responsiveHeight,responsiveWidth} from "react-native-responsive-dimensions"
|
import {responsiveHeight, responsiveWidth} from "react-native-responsive-dimensions"
|
||||||
import BaseScreen from "../BaseScreen";
|
import BaseScreen from "../BaseScreen";
|
||||||
import Icon from "react-native-vector-icons/MaterialIcons";
|
import Icon from "react-native-vector-icons/MaterialIcons";
|
||||||
import BlurOverlay,{openOverlay,closeOverlay} from 'react-native-blur-overlay'
|
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 = {};
|
type Props = {};
|
||||||
const route=require("./../../route.json")
|
const route = require("./../../route.json")
|
||||||
const theme=require('./../../utils/theme.json')
|
const theme = require('./../../utils/theme.json')
|
||||||
export default class InterticielAds
|
export default class InterticielAds
|
||||||
extends BaseScreen {
|
extends BaseScreen {
|
||||||
static navigatorStyle = {
|
static navigatorStyle = {
|
||||||
drawUnderNavBar: true,
|
drawUnderNavBar: true,
|
||||||
navBarHidden:true,
|
navBarHidden: true,
|
||||||
drawUnderStatusBar: false,
|
drawUnderStatusBar: false,
|
||||||
statusBarHidden: true,
|
statusBarHidden: true,
|
||||||
statusBarTextColorScheme: 'light',
|
statusBarTextColorScheme: 'light',
|
||||||
};
|
};
|
||||||
|
|
||||||
static options(passProps) {
|
static options(passProps) {
|
||||||
return {
|
return {
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
@ -42,16 +44,16 @@ export default class InterticielAds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
constructor(props){
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
render(){
|
render() {
|
||||||
return ( <BlurOverlay radius={14}
|
return (<BlurOverlay radius={14}
|
||||||
downsampling={2}
|
downsampling={2}
|
||||||
onPress={()=>{
|
onPress={() => {
|
||||||
this.setState({isPubShow:false})
|
this.setState({isPubShow: false})
|
||||||
}}
|
}}
|
||||||
brightness={-200}
|
brightness={-200}
|
||||||
|
|
||||||
|
@ -59,20 +61,24 @@ export default class InterticielAds
|
||||||
{this.renderChild()}
|
{this.renderChild()}
|
||||||
</BlurOverlay>)
|
</BlurOverlay>)
|
||||||
}
|
}
|
||||||
renderChild(){
|
|
||||||
return ( <View style={styles.container}>
|
|
||||||
|
|
||||||
|
renderChild() {
|
||||||
|
return (<View style={styles.container}>
|
||||||
|
|
||||||
<WebView
|
<WebView
|
||||||
source={{uri: 'https://ad-server.ilink-app.com/ad_display/zone1/zone4.html'}}
|
source={{uri: 'https://ilink-app.com/ads.html'}}
|
||||||
style={{width:responsiveHeight(90),flex:9}}
|
style={{
|
||||||
|
width: responsiveWidth(100),
|
||||||
|
marginTop: 37 + responsiveHeight(4),
|
||||||
|
backgroundColor: 'white'
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<View>
|
<View>
|
||||||
<Button
|
<Button
|
||||||
title={I18n.t('QUIT_')}
|
title={I18n.t('QUIT_')}
|
||||||
color={theme.reddeconnect}
|
color={theme.reddeconnect}
|
||||||
style={{position:'absolute',zIndex:10000}}
|
style={{position: 'absolute', zIndex: 10000}}
|
||||||
onPress={()=>{
|
onPress={() => {
|
||||||
this.popOverLay()
|
this.popOverLay()
|
||||||
}}
|
}}
|
||||||
>{I18n.t('QUIT_')}</Button>
|
>{I18n.t('QUIT_')}</Button>
|
||||||
|
@ -82,30 +88,34 @@ export default class InterticielAds
|
||||||
</View>)
|
</View>)
|
||||||
|
|
||||||
}
|
}
|
||||||
componentDidMount(){
|
|
||||||
|
componentDidMount() {
|
||||||
openOverlay()
|
openOverlay()
|
||||||
|
|
||||||
}
|
}
|
||||||
async tryGetHtml(){
|
|
||||||
response=await fetch('https://ad-server.ilink-app.com/ad_display/zone1/zone4.html')
|
async tryGetHtml() {
|
||||||
|
response = await fetch('https://ad-server.ilink-app.com/ad_display/zone1/zone4.html')
|
||||||
}
|
}
|
||||||
|
|
||||||
popOverLay() {
|
popOverLay() {
|
||||||
if(this.props.closeIntersticiel)
|
if (this.props.closeIntersticiel)
|
||||||
this.props.closeIntersticiel()
|
this.props.closeIntersticiel()
|
||||||
closeOverlay()
|
closeOverlay()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles=StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container:{
|
container: {
|
||||||
flex:1,
|
flex: 1,
|
||||||
marginTop:30
|
marginTop: 30,
|
||||||
|
backgroundColor: "white"
|
||||||
},
|
},
|
||||||
parent:{
|
parent: {
|
||||||
flex:1,
|
flex: 1,
|
||||||
justifyContent:'center',
|
justifyContent: 'center',
|
||||||
alignItems:'center',
|
alignItems: 'center',
|
||||||
backgroundColor:"#000000AE"
|
backgroundColor: "#000000AE"
|
||||||
}
|
}
|
||||||
})
|
})
|
|
@ -1384,13 +1384,11 @@ class Home extends BaseScreen {
|
||||||
}}
|
}}
|
||||||
/>*/
|
/>*/
|
||||||
showInterticiel() {
|
showInterticiel() {
|
||||||
if (this.state.isPubShow) {
|
|
||||||
return (<InterticielAds
|
return (<InterticielAds
|
||||||
closeIntersticiel={() => this.setState({isPubShow: false})}
|
closeIntersticiel={() => this.setState({isPubShow: false})}
|
||||||
navigation={this.props.navigation}
|
navigation={this.props.navigation}
|
||||||
/>)
|
/>)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
renderBottomHome() {
|
renderBottomHome() {
|
||||||
return (
|
return (
|
||||||
|
@ -1709,6 +1707,7 @@ class Home extends BaseScreen {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{this.makeCardSearch()}
|
{this.makeCardSearch()}
|
||||||
|
{this.showInterticiel()}
|
||||||
{this.makeSlidingUp()}
|
{this.makeSlidingUp()}
|
||||||
{this.makeDialogLoader()}
|
{this.makeDialogLoader()}
|
||||||
{this.makeDistanceDialog()}
|
{this.makeDistanceDialog()}
|
||||||
|
|
|
@ -3,6 +3,7 @@ import {
|
||||||
Animated,
|
Animated,
|
||||||
AppState,
|
AppState,
|
||||||
Platform,
|
Platform,
|
||||||
|
ActivityIndicator,
|
||||||
ProgressBarAndroid,
|
ProgressBarAndroid,
|
||||||
StatusBar,
|
StatusBar,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
|
|
Loading…
Reference in New Issue