Commit f22fc362 authored by Fred's avatar Fred

update toast ganti jadi pake tiny toast di android dan ios jalan

parent 06423dde
import { Alert,ToastAndroid } from 'react-native';
import { Alert } from 'react-native';
export default function session(response, error_status, navigation) {
if (error_status != 500) {
......
......@@ -65,6 +65,7 @@
"react-native-simple-toast": "^1.1.2",
"react-native-status-bar-height": "^2.5.0",
"react-native-swiper": "^1.5.14",
"react-native-tiny-toast": "^1.0.7",
"react-native-view-pager": "^0.2.3",
"react-native-view-shot": "3.0.2",
"react-native-web": "~0.11.7",
......
......@@ -9,8 +9,7 @@ import {
TouchableOpacity,
Alert,
Button,
ImageBackground,
ToastAndroid
ImageBackground
} from 'react-native';
import { StackActions } from '@react-navigation/native';
......@@ -26,7 +25,7 @@ import * as Permissions from 'expo-permissions';
import * as Device from 'expo-device';
import session from '../function/session';
import Constants from 'expo-constants';
import Toast from 'react-native-simple-toast'
import Toast from 'react-native-tiny-toast';
class Account extends React.Component {
constructor(props) {
......
......@@ -4,14 +4,14 @@ import * as Device from 'expo-device';
import * as Location from 'expo-location';
import * as Permissions from 'expo-permissions';
import * as React from 'react';
import { ActivityIndicator, Alert, Dimensions, ScrollView, StyleSheet, Text, TouchableOpacity, View, SafeAreaView, StatusBar, ToastAndroid } from 'react-native';
import { ActivityIndicator, Alert, Dimensions, ScrollView, StyleSheet, Text, TouchableOpacity, View, SafeAreaView, StatusBar } from 'react-native';
import { SliderBox } from "react-native-image-slider-box";
import { Card } from 'react-native-shadow-cards';
import { connect } from 'react-redux';
import info from '../app.json';
import session from '../function/session';
import ActionType from '../redux/globalActionType';
import Toast from 'react-native-simple-toast'
import Toast from 'react-native-tiny-toast';
let version = info.expo.version
let buildNumber = info.expo.android.versionCode
......@@ -36,7 +36,6 @@ class Home extends React.Component {
}
componentDidMount() {
console.log('ini outlet id' + this.props.outlet_id)
console.log('ini nama outlet ' + this.props.name_outlet)
console.log('ini alamat outlet ' + this.props.outlet_detailadress)
......
......@@ -10,6 +10,7 @@ import ActionType from '../redux/globalActionType';
import { BASE_URL_LOGIN } from '../model/Base_Model';
import { Notifications } from 'expo';
import Spinner from 'react-native-loading-spinner-overlay';
import Toast from 'react-native-tiny-toast';
class Login extends React.Component {
constructor(props) {
......@@ -41,11 +42,11 @@ class Login extends React.Component {
let { status } = await Permissions.getAsync(Permissions.NOTIFICATIONS);
if (status !== 'granted') {
// Alert.alert('Akses tidak dizinkan!')
ToastAndroid.show("Failed to get push token for push notification!", ToastAndroid.SHORT)
Toast.show("Failed to get push token for push notification!", ToastAndroid.SHORT)
} else if (Device.osName == 'Android' && !Device.isDevice) {
// Alert.alert('Silahkan anda coba di real Device')
ToastAndroid.show("Silahkan anda coba di real Device", ToastAndroid.SHORT)
Toast.show("Silahkan anda coba di real Device", ToastAndroid.SHORT)
} else {
let fb_token = await Notifications.getExpoPushTokenAsync();
let device_id = Constants.deviceId
......
import React from 'react';
import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, Alert, BackHandler, ToastAndroid } from 'react-native';
import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, Alert, BackHandler } from 'react-native';
import { connect } from 'react-redux';
import Axios from 'axios';
import ActionType from '../redux/globalActionType';
import NumberFormat from 'react-number-format';
import Toast from 'react-native-simple-toast'
import Toast from 'react-native-tiny-toast';
class RedeemCode extends React.Component {
......
import React from 'react';
import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, ScrollView, FlatList, Image, Alert, ActivityIndicator, ToastAndroid } from 'react-native';
import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, ScrollView, FlatList, Image, Alert, ActivityIndicator } from 'react-native';
import { connect } from 'react-redux'
import CheckBox from 'react-native-check-box'
import { Card } from 'react-native-shadow-cards'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment