Before switching to release
This commit is contained in:
parent
1062a79778
commit
ff23733606
1
App.js
1
App.js
|
@ -438,6 +438,7 @@ export default class App extends React.Component {
|
|||
|
||||
goToScreen = (routeName, params, isReset = true) => {
|
||||
const {navigator} = this.refs;
|
||||
console.log("NAVIGATOR", navigator);
|
||||
if (typeof navigator !== 'undefined') {
|
||||
console.log("APP HAS LOADED", global.appHasLoaded);
|
||||
if (global.appHasLoaded) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
"test": "jest",
|
||||
"postinstall": "node ./fix-android/android-release-fix.js",
|
||||
"release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/release/ && rm -rf ./android/app/src/main/res/drawable-* && rm -rf ./android/app/src/main/res/raw/* && cd ./android && ./gradlew assembleRelease -x bundleReleaseJsAndAssets && cd .. && adb install ./android/app/build/outputs/apk/release/app-release.apk",
|
||||
"debug-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/ && cd ./android && ./gradlew assembleDebug && cd .. && adb install ./android/app/build/outputs/apk/debug/app-debug.apk",
|
||||
"debug-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/ ; cd ./android ; sudo ./gradlew clean ; sudo ./gradlew assembleDebug ; cd .. && adb install ./android/app/build/outputs/apk/debug/app-debug.apk",
|
||||
"start-emulator": "emulator -avd Nexus_5X_API_29 -dns-server 8.8.8.8",
|
||||
"start-emulator-pixel": "emulator -avd Pixel_2_API_29 -dns-server 8.8.8.8",
|
||||
"run-debug": "cd android && ./gradlew clean && cd .. && react-native run-android",
|
||||
|
|
|
@ -1707,7 +1707,7 @@ class Home extends BaseScreen {
|
|||
}}
|
||||
/>
|
||||
{this.makeCardSearch()}
|
||||
{this.showInterticiel()}
|
||||
{/*this.showInterticiel()*/}
|
||||
{this.makeSlidingUp()}
|
||||
{this.makeDialogLoader()}
|
||||
{this.makeDistanceDialog()}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
import React, { Component } from 'react';
|
||||
import React, {Component} from 'react';
|
||||
import {
|
||||
StyleSheet, View, Text, Image, ProgressBarAndroid,
|
||||
TouchableNativeFeedback, TouchableOpacity,
|
||||
PermissionsAndroid, NativeModules, StatusBar, Platform, Animated
|
||||
} from 'react-native';
|
||||
import { responsiveHeight, responsiveWidth, responsiveFontSize } from 'react-native-responsive-dimensions';
|
||||
import {responsiveHeight, responsiveWidth, responsiveFontSize} from 'react-native-responsive-dimensions';
|
||||
import I18n from 'react-native-i18n'
|
||||
|
||||
const theme = require('./../../utils/theme.json');
|
||||
const route = require('./../../route.json');
|
||||
import { readUser, getPasObject, getPubActiveObject } from '../../webservice/AuthApi';
|
||||
import { Bubbles, DoubleBounce, Bars, Pulse } from 'react-native-loader';
|
||||
import {readUser, getPasObject, getPubActiveObject} from '../../webservice/AuthApi';
|
||||
import {Bubbles, DoubleBounce, Bars, Pulse} from 'react-native-loader';
|
||||
import Configuration from "../../webservice/persistences/Configuration";
|
||||
import '../ads/InterticielAds'
|
||||
import * as Animatable from 'react-native-animatable';
|
||||
|
@ -17,6 +18,7 @@ import LottieView from 'lottie-react-native'; // if you have "esModuleInterop":
|
|||
import InterticielAds from '../ads/InterticielAds';
|
||||
import Overlay from 'react-native-elements'
|
||||
import DeviceInfo from 'react-native-device-info';
|
||||
|
||||
export default class SplashScreen extends Component {
|
||||
static navigatorStyle = {
|
||||
drawUnderNavBar: true,
|
||||
|
@ -25,6 +27,7 @@ export default class SplashScreen extends Component {
|
|||
statusBarHidden: false,
|
||||
statusBarTextColorScheme: 'light',
|
||||
};
|
||||
|
||||
static options(passProps) {
|
||||
return {
|
||||
statusBar: {
|
||||
|
@ -47,10 +50,9 @@ export default class SplashScreen extends Component {
|
|||
//
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
||||
}
|
||||
this.state = {};
|
||||
};
|
||||
|
||||
workUserResult(result) {
|
||||
console.log("SPLASHSCREEN PROPS", this.props);
|
||||
if (typeof this.props.navigation.state.params !== 'undefined') {
|
||||
|
@ -83,9 +85,11 @@ export default class SplashScreen extends Component {
|
|||
way = "App"
|
||||
else {
|
||||
switch (result.category) {
|
||||
case 'geolocated': way = "AgentApp"
|
||||
case 'geolocated':
|
||||
way = "AgentApp"
|
||||
break;
|
||||
case 'super': way = "adminApp"
|
||||
case 'super':
|
||||
way = "adminApp"
|
||||
break
|
||||
default:
|
||||
way = "supAdminApp"
|
||||
|
@ -93,6 +97,7 @@ export default class SplashScreen extends Component {
|
|||
}
|
||||
way2 = route.login
|
||||
}
|
||||
console.log("SPLASHSCREEN PROPS WAY", way);
|
||||
this.props.navigation.navigate(way)
|
||||
}
|
||||
|
||||
|
@ -117,6 +122,7 @@ export default class SplashScreen extends Component {
|
|||
});*/
|
||||
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
try {
|
||||
this.requestCameraPermission()
|
||||
|
@ -129,6 +135,7 @@ export default class SplashScreen extends Component {
|
|||
this.bounce()
|
||||
|
||||
}
|
||||
|
||||
async requestCameraPermission() {
|
||||
try {
|
||||
const granted = await PermissionsAndroid.request(
|
||||
|
@ -150,9 +157,10 @@ export default class SplashScreen extends Component {
|
|||
console.log(err)
|
||||
}
|
||||
}
|
||||
|
||||
handleViewRef = ref => this.view = ref;
|
||||
|
||||
bounce = () => this.view.transition({ translateX: 0 }, { translateX: 700 }, 5000);
|
||||
bounce = () => this.view.transition({translateX: 0}, {translateX: 700}, 5000);
|
||||
|
||||
render() {
|
||||
|
||||
|
@ -161,11 +169,17 @@ export default class SplashScreen extends Component {
|
|||
<StatusBar
|
||||
translucent={true}
|
||||
/>
|
||||
<Image style={styles.logo} source={require('./../../datas/img/icon3up.png')} />
|
||||
<View style={{ flexDirection: 'row' }}>
|
||||
<Image style={styles.logo} source={require('./../../datas/img/iconsub3.png')} />
|
||||
<Image style={styles.logo} source={require('./../../datas/img/icon3up.png')}/>
|
||||
<View style={{flexDirection: 'row'}}>
|
||||
<Image style={styles.logo} source={require('./../../datas/img/iconsub3.png')}/>
|
||||
<Animatable.View
|
||||
style={{ width: responsiveWidth(90), height: 92, backgroundColor: theme.primary, position: 'absolute', zIndex: 100 }}
|
||||
style={{
|
||||
width: responsiveWidth(90),
|
||||
height: 92,
|
||||
backgroundColor: theme.primary,
|
||||
position: 'absolute',
|
||||
zIndex: 100
|
||||
}}
|
||||
ref={this.handleViewRef}>
|
||||
</Animatable.View>
|
||||
|
||||
|
|
Loading…
Reference in New Issue