expo

How to schedule push notifcations for react native expo?

限于喜欢 提交于 2020-07-03 13:16:08
问题 I am trying to send push notifications to a user at a scheduled time. Say they set the date for an event and they want to be notified 30 minutes before, that is when I would like to send them a notification. I am using firebase as my backend and the project is built with expo. I am curious how I would use expo's notification system if I am using firebase cloud messaging because it says I need separate permission from firebase (I already have the expo token for each user). I have looked into

Fetch requests failing on Android to AWS S3 endpoint

你。 提交于 2020-06-29 04:43:04
问题 I am using React Native with Expo SDK 37. My request looks like the following: export const uploadMedia = async (fileData, s3Data) => { console.log(fileData.type) let formData = new FormData(); formData.append('key', s3Data.s3Key); formData.append('Content-Type', fileData.type); formData.append('AWSAccessKeyId', s3Data.awsAccessKey); formData.append('acl', 'public-read'); formData.append('policy', s3Data.s3Policy); formData.append('signature', s3Data.s3Signature); formData.append('file',

There is no valid Keystore defined for this app

拟墨画扇 提交于 2020-06-27 10:14:34
问题 I want to add google maps api to my react-native project. I follow the doc but when i run expo fetch:android:hashes give me those errors There is no valid Keystore defined for this app keytool error: java.lang.Exception: Keystore file does not exist: F:\React-Native-Redux-Nodejs-Firebase\instagram-clone\instagram-clone.tmp.jks Any way to fix this? 回答1: You should provide SHA256 first 回答2: You need to export from expo kit if you're using react-native-maps . expo fetch:android:hashes This will

There is no valid Keystore defined for this app

∥☆過路亽.° 提交于 2020-06-27 10:13:02
问题 I want to add google maps api to my react-native project. I follow the doc but when i run expo fetch:android:hashes give me those errors There is no valid Keystore defined for this app keytool error: java.lang.Exception: Keystore file does not exist: F:\React-Native-Redux-Nodejs-Firebase\instagram-clone\instagram-clone.tmp.jks Any way to fix this? 回答1: You should provide SHA256 first 回答2: You need to export from expo kit if you're using react-native-maps . expo fetch:android:hashes This will

React Native Async Font Loading

空扰寡人 提交于 2020-06-26 21:05:50
问题 I'm building a React native code project using react-native-cli, is there anyway to Async Load fonts without Expo? Would there be a problem simply importing { Font } from 'expo' in my cli native project? 回答1: If you want to use the external font (e.g. Google fonts, etc.) or any vector icons (e.g. ant icons), you have to load before app render, like this import * as Font from "expo-font"; import { AppLoading } from "expo"; async componentDidMount() { await Font.loadAsync( "antoutline", require

EXPO: Unable to resolve module ‘./debugger

丶灬走出姿态 提交于 2020-06-24 11:05:48
问题 After a reload my app has stopped loading. I have tried on both emulators and 2 real devives, android and ios. The error is: Error: Unable to resolve module ./debugger-ui/debuggerWorker.d9da4ed7 from ``: and occassionally I will get the error, 'unable to locate instance'. I have tried the following: Clear watchman watches: watchman watch-del-all . Delete the node_modules folder: rm -rf node_modules && npm install . Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- -

EXPO: Unable to resolve module ‘./debugger

我怕爱的太早我们不能终老 提交于 2020-06-24 11:05:32
问题 After a reload my app has stopped loading. I have tried on both emulators and 2 real devives, android and ios. The error is: Error: Unable to resolve module ./debugger-ui/debuggerWorker.d9da4ed7 from ``: and occassionally I will get the error, 'unable to locate instance'. I have tried the following: Clear watchman watches: watchman watch-del-all . Delete the node_modules folder: rm -rf node_modules && npm install . Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- -

EXPO: Unable to resolve module ‘./debugger

扶醉桌前 提交于 2020-06-24 11:04:32
问题 After a reload my app has stopped loading. I have tried on both emulators and 2 real devives, android and ios. The error is: Error: Unable to resolve module ./debugger-ui/debuggerWorker.d9da4ed7 from ``: and occassionally I will get the error, 'unable to locate instance'. I have tried the following: Clear watchman watches: watchman watch-del-all . Delete the node_modules folder: rm -rf node_modules && npm install . Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- -

How can I clean (reset cache) of React Native using Expo. Not sure if it is cache issue

一曲冷凌霜 提交于 2020-06-24 04:58:44
问题 I am building a simple React Native app with create-react-native-app using only react-navigation and base-64(base 64 encode/decode) as dependencies. Over time starting the app became slower and now sometimes it is getting stuck(waiting for about 30min) on "Starting packager..." after running NPM start. I've tried starting it with "npm start -- --reset-cache" but nothing changed Once it is up and running I don't get any error or warning in DevTools or terminal. Also there are no issues with

How to display items on screen using search textinput (expo, react-native)

£可爱£侵袭症+ 提交于 2020-06-17 15:51:49
问题 I am using react native and expo. I have some JSON data on the screen (iOS) simulator that was fetched from API. At the top, I have a search bar where users can search the data that is displayed on the screen. For example, if the data is A a company B bcompany A is a company symbol and a company is a symbol name. So when user types A it should display A company and if user type Z it should display Z company. My code: import React, { useState, useEffect } from "react"; import { StyleSheet,