expo

Error: ENOENT: no such file or directory expo-av

岁酱吖の 提交于 2020-04-18 06:10:34
问题 I'm building an application using react-native with expo-cli and I'm building the apk using the command: expo build:android but I get the error: Error: ENOENT: no such file or directory, open 'C:\Users\Ahmed Hassan\Desktop\app-name\assets\sounds\alert.mp3' regarding the asset I'm importing in a component with the following code: import { Audio } from 'expo-av'; async function sound() { const soundObject = new Audio.Sound(); try { await soundObject.loadAsync(require('../assets/sounds/alert.mp3

can not find the variable location with reversegeocodeAsync

浪子不回头ぞ 提交于 2020-04-18 05:46:07
问题 Hello everyone who sees that question I need help in that and full of hope that someone is gonna help I am trying to get the exact location for the user to pass it finally in some other functionalities. I am using Expo init and expo-location while using (reversegeocodeAsync({})) for the first render it's giving me the correct location but while testing it's crashing and giving an error and even works it's not making the data like after setting state it's not being available globally to use it

expo Unable to resolve “fetch”

女生的网名这么多〃 提交于 2020-04-17 22:07:48
问题 I am trying to run an expo project, (react-native) but when i run the project, i get following result: Unable to resolve "fetch" from "src\components\MyScreen\Screen.js" Fetch should not be a nodejs standard feature? What should i do to run fetch with the project? Also, if i try to yarn add fetch , i get a different error. The package at "node_modules\fetch\lib\fetch.js" attempted to import the Node standard library module "http". It failed because React Native does not include the Node

expo Unable to resolve “fetch”

安稳与你 提交于 2020-04-17 22:03:54
问题 I am trying to run an expo project, (react-native) but when i run the project, i get following result: Unable to resolve "fetch" from "src\components\MyScreen\Screen.js" Fetch should not be a nodejs standard feature? What should i do to run fetch with the project? Also, if i try to yarn add fetch , i get a different error. The package at "node_modules\fetch\lib\fetch.js" attempted to import the Node standard library module "http". It failed because React Native does not include the Node

monorepo: expo with yarn workspace and using expo install

瘦欲@ 提交于 2020-04-16 05:48:00
问题 I'm trying to setup a React and Expo monorepo project, everything seems good until I want to install react-navigation with expo install according to the react-navigation docs, because expo install use yarn in the background and because it's a workspace environment this error pop out, which I have no idea how to bypass. any ideas? yarn add v1.21.1 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. error Running this command will add the dependency to the

monorepo: expo with yarn workspace and using expo install

╄→гoц情女王★ 提交于 2020-04-16 05:47:10
问题 I'm trying to setup a React and Expo monorepo project, everything seems good until I want to install react-navigation with expo install according to the react-navigation docs, because expo install use yarn in the background and because it's a workspace environment this error pop out, which I have no idea how to bypass. any ideas? yarn add v1.21.1 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. error Running this command will add the dependency to the

how do you format a number to currency when using React native EXPO?

拟墨画扇 提交于 2020-04-10 07:07:46
问题 how do I take a number like 10000 and have it output as $10,000.00 ? I even had a problem with String.format(...) with a Not a function error. I followed numerous articles, all incomplete and none working. I don't need full internationalization, just the ability to format a number 回答1: You can use this library react-number-format. It has these features Prefix, suffix and thousand separator. Custom format pattern. Masking. Custom formatting handler. Format number in an input or format as a

Laravel Expo Push Notification - Not receiving Notification on Android

主宰稳场 提交于 2020-04-10 06:05:31
问题 I am quite new to Laravel and couldn't find any practical example of the library https://github.com/Alymosul/laravel-exponent-push-notifications. I want to create a simple Welcome-Notification. My Notification looks like this: <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use NotificationChannels\ExpoPushNotifications\ExpoChannel; use NotificationChannels\ExpoPushNotifications\ExpoMessage; class WelcomeNotification extends

Laravel Expo Push Notification - Not receiving Notification on Android

允我心安 提交于 2020-04-10 06:02:25
问题 I am quite new to Laravel and couldn't find any practical example of the library https://github.com/Alymosul/laravel-exponent-push-notifications. I want to create a simple Welcome-Notification. My Notification looks like this: <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use NotificationChannels\ExpoPushNotifications\ExpoChannel; use NotificationChannels\ExpoPushNotifications\ExpoMessage; class WelcomeNotification extends

Can't find a variable atob

别来无恙 提交于 2020-04-08 05:55:54
问题 Screen1.js import React,{useEffect} from 'react' import {View,Text} from 'react-native' import * as firebase from 'firebase/app'; import '@firebase/firestore'; const Screen1 = props =>{ useEffect(() => { var dbh = firebase.firestore().collection("Jots").doc("note"); dbh.set({name:"pradeep"}) //The yellow warning is popped up in this line. }); return( <View> <Text>Title</Text> </View> ) } console [Unhandled promise rejection: ReferenceError: Can't find variable: atob] Stack trace: node_modules