Category : expo

here, I have taken a view in which added image background and two buttons somehow I am not able to change button’s position <ImageBackground style={styles.container} resizeMode="cover" source={require("../../assets/loginsignup.png")} > <Button style={styles.button} title="" onPress={() => navigation.navigate("Login")} /> <Button title="" onPress={() => navigation.navigate("Register")} /> </ImageBackground> </View> and this is the style I have implemented container: { width: "100%", ..

Read more

On iOS, using MediaLibrary.getAssetsAsync() returns assets with assets-library://…. uri. But a lot of the Expo/ReactNative APIs require a file:// uri, e.g. face detector module and sharing module To solve this, I ended up just copying the asset using FileSystem.copyAsset() to the apps cache directory. Is there a better way? Why is this necessary? const localUri ..

Read more

I want to re render this screen every time I push it in navigator import React,{useEffect,useState} from ‘react’; import {View, Text, StyleSheet, SafeAreaView, FlatList, Image, TouchableOpacity, Alert } from ‘react-native’; import Icon from ‘react-native-vector-icons/Ionicons’; import {useSelector} from ‘react-redux’; import Products from ‘./../../Data/Products’; import AddToCartRequest from ‘./../../http/AddToCartRequest’; const ProductCategoryScreen = props =>{ const [refreshPage, setRefreshPage] = ..

Read more

Open WebView on <WebView onNavigationStateChange={handleURL} style={[styles.webView, !loading && { display: "none" }]} source={{ uri: "https://google.com" }} /> But on android 5-7 got this bug. I can’t open any url. Google, as example Encountered an error loading page, Object { "canGoBack": false, "canGoForward": false, "code": -1, "description": "net::ERR_CACHE_MISS", "loading": false, "target": 679, "title": "", "url": "https://google.com/", ..

Read more

am working with in app purchase in react-native.am using expo-in-app-purchase.in order to validate receipt with app store am getting something like this: result [ { ……………………. purchase_date: ‘2021-05-03 11:34:17 Etc/GMT’, purchase_date_ms: ‘1620041657000’, purchase_date_pst: ‘2021-05-03 04:34:17 America/Los_Angeles’, original_purchase_date: ‘2021-05-03 11:33:20 Etc/GMT’, original_purchase_date_ms: ‘1620041600000’, original_purchase_date_pst: ‘2021-05-03 04:33:20 America/Los_Angeles’, expires_date: ‘2021-05-03 11:39:17 Etc/GMT’, expires_date_ms: ‘1620041957000’, expires_date_pst: ‘2021-05-03 04:39:17 ..

Read more