expo

How to resolve Uncaught Error:29.0.0 in React Native Expo project

别来无恙 提交于 2020-06-13 05:01:27
问题 I am trying out a demo of a react-native application that was built (not by me) using Expo approach. After installing dependencies and trying to run the application; I get the error below: Uncaught Error: 29.0.0 is not a valid SDK version. Options are 35.0.0 , 33.0.0, UNVERSIONED. 16:56:55 Fatal Error . Here is the package.json file: { "name": "food-shop", "main": "node_modules/expo/AppEntry.js", "private": true, "scripts": { "start": "expo start", "android": "expo start --android", "ios":

How to resolve Uncaught Error:29.0.0 in React Native Expo project

醉酒当歌 提交于 2020-06-13 05:01:05
问题 I am trying out a demo of a react-native application that was built (not by me) using Expo approach. After installing dependencies and trying to run the application; I get the error below: Uncaught Error: 29.0.0 is not a valid SDK version. Options are 35.0.0 , 33.0.0, UNVERSIONED. 16:56:55 Fatal Error . Here is the package.json file: { "name": "food-shop", "main": "node_modules/expo/AppEntry.js", "private": true, "scripts": { "start": "expo start", "android": "expo start --android", "ios":

expo standalone app: notification icons don't show up show up

↘锁芯ラ 提交于 2020-06-12 05:35:39
问题 I have a standalone android and ios app. currently testing push notifications on android. I have setup my app.json with the following notification key "notification":{ "icon": "./app_assets/icons/icon-48-gs.png", "color": "#000000" }, the icon above is a 48x48 greyscale icon with transparency. i tried also without color attribute. all i get in both the status bar and in the actual notiification is a white/light grey/black square. in the expo forums i saw others mention they solved this issue

Invalid Regular Expression error after running expo start command

允我心安 提交于 2020-06-09 06:55:47
问题 I am new to React native development. After running: expo start or npm start or yarn start It returns the following error message: Invalid regular expression error How can I debug this? PS C:\Users\Admin\Desktop\React Course\New folder (2)\newproject> expo start Starting project at C:\Users\Admin\Desktop\React Course\New folder (2)\newproject Expo DevTools is running at http://localhost:19002 Opening DevTools in the browser... (press shift-d to disable) error Invalid regular expression: /(.*\

Invalid Regular Expression error after running expo start command

痴心易碎 提交于 2020-06-09 06:54:28
问题 I am new to React native development. After running: expo start or npm start or yarn start It returns the following error message: Invalid regular expression error How can I debug this? PS C:\Users\Admin\Desktop\React Course\New folder (2)\newproject> expo start Starting project at C:\Users\Admin\Desktop\React Course\New folder (2)\newproject Expo DevTools is running at http://localhost:19002 Opening DevTools in the browser... (press shift-d to disable) error Invalid regular expression: /(.*\

How to use setLocale within i18n-js?

这一生的挚爱 提交于 2020-06-09 06:49:42
问题 I am using i18n-js within my expo project to translate my app. This is how I configure it: import React from 'react'; import * as Localization from 'expo-localization'; import i18n from 'i18n-js'; export default function configureI18n(translations) { i18n.fallbacks = true; i18n.translations = translations; i18n.locale = Localization.locale; const [locale, setLocale] = React.useState(Localization.locale); const localizationContext = React.useMemo(() => ({ t: (scope, options) => i18n.t(scope, {

Expo Push Notification with PHP

拜拜、爱过 提交于 2020-06-08 12:39:18
问题 I am trying to send a Push Notification to my react native app using PHP, the below code is sending too all the users that registered their token and it sends plenty Notification at once though the token is for specific device but it keep pushing the notification to all $key = "ExponentPushToken[0GAEokJazChx21MOxeC1l2]"; $title = "title"; $interestDetails = ['https://exp.host/--/api/v2/push/send',$key]; try{ $expo = \ExponentPhpSDK\Expo::normalSetup(); // Subscribe the recipient to the server

npm ERR! Error: EPERM: operation not permitted, unlink

霸气de小男生 提交于 2020-05-31 05:04:28
问题 OS : Windows 10. npm version : 6.9.0 node version : 12.4.0 I'm working on an expo application. I would like to install all the packages on my expo application (npm install). But, an error occured : 17254 error [OperationalError: EPERM: operation not permitted, unlink ... I have seen this error on many subjects, but no one answer to my problem. I've already tried to : Launch my terminal as an administrator. npm config set safe-perm=true. npm install --no-bin-links npm cache clear --force An

npm ERR! Error: EPERM: operation not permitted, unlink

岁酱吖の 提交于 2020-05-31 05:02:21
问题 OS : Windows 10. npm version : 6.9.0 node version : 12.4.0 I'm working on an expo application. I would like to install all the packages on my expo application (npm install). But, an error occured : 17254 error [OperationalError: EPERM: operation not permitted, unlink ... I have seen this error on many subjects, but no one answer to my problem. I've already tried to : Launch my terminal as an administrator. npm config set safe-perm=true. npm install --no-bin-links npm cache clear --force An

Ask to choose Audio file in React Native?

 ̄綄美尐妖づ 提交于 2020-05-30 11:41:20
问题 I have App for upload Songs to our API, but I can't find a library for that, Like RN-image-picker that ask the user which photo he wants to choose, So is there anything like this but for File "especially Audio" I'm trying react-native-fs and use example code snippet he provides in README but when I invoke it I got a function as result in logs chooseFile = () => { RNFS.readDir(RNFS.DocumentDirectoryPath) .then(result => { console.log('GOT RESULT', result); // here i got functions as result //