expo

Undefined is not an object (evaluating 'RCTAsyncStorage.multiMerge' (React-native-asyncstorage)

雨燕双飞 提交于 2019-11-28 03:35:44
问题 I am having an issue related to react-native-asyncstorage from here: https://facebook.github.io/react-native/docs/asyncstorage.html When I run react-native run-ios , the following error appears: I am using react-native 0.52.0 and this problem may be due to the dependency of react-native-asyncstorage: react-native-asyncstorage@1.0.0 requires a peer of react-native@^0.47.2 but none is installed. You must install peer dependencies yourself. The odd thing is it works fine for Android, but not for

Expo : cannot find a module LogReporter

送分小仙女□ 提交于 2019-11-27 21:24:55
I have created a React Native Project and I was trying to open that project in Expo XDE. It throws the following error: Cannot find module ...\node_modules\expo\tools\LogReporter Firstly I created a React Native project by cloning a KitchenSink Project. Link: NativeBase-KitchenSink When I started the project by issuing series of commands inside the project root directory: npm install and then expo start I saw that the app.json was also not proper, which was the following: { "name": "NativebaseKitchenSink", "displayName": "NativebaseKitchenSink" } After issuing expo start react-native reported

Cannot add task 'wrapper' as a task with that name already exists

感情迁移 提交于 2019-11-27 21:09:57
问题 when installing 'react-native init AwesomeProject' I am then met with the above error when running 'react-native run-android' Could not determine java version from '11.0.1'. a quick google suggests I need to update the distributionUrl in the Gradle-wrapper. Having done this I am faced with a new error Cannot add task 'wrapper' as a task with that name already exists. it suggests the issue is in the file: /AwesomeProject/android/build.gradle' line: 36 which looks like this task wrapper(type:

How to reduce the react-native app size on Android

扶醉桌前 提交于 2019-11-27 20:17:15
I am developing a small dictionary app by using react native with expo. As I am compiling to Apk file. The size goes up to 30mb and after having installed on a device, it goes to 80mb. Is this normal? Are there any ways to reduce the size of the app? Thank you guys. expo is for testing the app you should migrate to react-native for production make a new react app " react-native init " Copy the source files over from Expo project Install all dependencies of the Expo project except Expo specific libraries. Make necessary adjustments to app.json file Download the signing key of your Android app

Error Appstore connect : Missing Purpose String in Info.plist File

淺唱寂寞╮ 提交于 2019-11-27 09:38:28
问题 I've submitted my app for review to the App Store Connect. Although the app is still under review, I've received an email to inform me that I have to fix an error. Here is the content of the message: Dear Developer, We identified one or more issues with a recent delivery for your app XXXXX. Your delivery was successful, but you may wish to correct the following issues in your next delivery: "Missing Purpose String in Info.plist File. Your app's code references one or more APIs that access

Network Response Time Out Error (create-react-native-app) (expo)

▼魔方 西西 提交于 2019-11-27 06:40:57
I am trying to run create-react-native-app on expo app in android. Firstly ,I created the project by writing command create-react-native-app test then I executed npm start then scanned the qr code from expo app. But after scanning QR code , I am getting following error: Uncaught Error: Java.net,sockettimeoutException: failed to connect to after 10000ms Github Issue: https://github.com/react-community/create-react-native-app/issues/144#issuecomment-296631692 This is due to not open port from your machine. In Ubuntu Run In terminal sudo ufw status verbose To view open port if you cannot found

Extend (Update) third-party old type declaration interface with new one

寵の児 提交于 2019-11-27 05:42:00
My problem is that I'm using an old type declaration package ( @types/expo ). So that's why I need to update some part of it. I created a new typing file like this. ( ./typings/expo/index.d.ts ) import * as expo from 'expo'; declare module 'expo' { var Icon: any; var SplashScreen: any; export interface AppLoadingProps { startAsync?: () => Promise<void[]>; } } Some parts were started to work but also I started to get this error: [ts] Subsequent property declarations must have the same type. Property 'startAsync' must be of type '(() => Promise<void>) | undefined', but here has type '(() =>

What is the best way to store private data in react-native?

烈酒焚心 提交于 2019-11-27 05:21:53
How can i implement feature like remember me when authenticating via react application? I think unencrypted AsyncStorage isn't the best way to do it, because data is open for users. I've tried to use realm , but stuck into problem that cannot be resolved in android using expo to test application. It says that i need to compile native code for android and edit that (Add realm object creation in MainApplication.js). I don't want to compile my project while it's not released yet. How does instagram and the other RN-apps store authentication data? What is the best approach? Julien Kode What is the

What is the difference between Expo and React Native?

微笑、不失礼 提交于 2019-11-26 18:26:28
From the Expo website Expo lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Isn't this what React Native does? What's the difference? I work at Expo! When you write code in Expo you write React Native code. Expo has two main pieces: 1) expo-cli : a developer tool for creating projects, viewing logs, opening on your device, publishing, etc. 2) The Expo client: an app on your phone that lets you open your projects while you're working on them, without needing to go through XCode or Android Studio , and also lets other

Expo : cannot find a module LogReporter

假如想象 提交于 2019-11-26 18:22:33
问题 I have created a React Native Project and I was trying to open that project in Expo XDE. It throws the following error: Cannot find module ...\node_modules\expo\tools\LogReporter Firstly I created a React Native project by cloning a KitchenSink Project. Link: NativeBase-KitchenSink When I started the project by issuing series of commands inside the project root directory: npm install and then expo start I saw that the app.json was also not proper, which was the following: { "name":