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" "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",

View File

@ -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

View File

@ -4,7 +4,6 @@ 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
@ -14,7 +13,9 @@ import {responsiveHeight,responsiveWidth} from "react-native-responsive-dimensio
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')
@ -27,6 +28,7 @@ export default class InterticielAds
statusBarHidden: true, statusBarHidden: true,
statusBarTextColorScheme: 'light', statusBarTextColorScheme: 'light',
}; };
static options(passProps) { static options(passProps) {
return { return {
statusBar: { statusBar: {
@ -59,13 +61,17 @@ export default class InterticielAds
{this.renderChild()} {this.renderChild()}
</BlurOverlay>) </BlurOverlay>)
} }
renderChild() { renderChild() {
return (<View style={styles.container}> 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
@ -82,13 +88,16 @@ export default class InterticielAds
</View>) </View>)
} }
componentDidMount() { componentDidMount() {
openOverlay() openOverlay()
} }
async tryGetHtml() { async tryGetHtml() {
response = await fetch('https://ad-server.ilink-app.com/ad_display/zone1/zone4.html') 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()
@ -100,7 +109,8 @@ export default class InterticielAds
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,

View File

@ -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()}

View File

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