expo

Android Material and appcompat Manifest merger failed in react-native or ExpoKit

纵饮孤独 提交于 2019-11-30 07:05:50
问题 I updated 'android.support:appcompat-v7' to 28.0.0 . But it brought an error from the build. Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml

Expo React-Native iOS Simulator not working

北战南征 提交于 2019-11-30 06:21:44
Hello I'm facing a problem with Expo React-Native. Whenever I try to launch the iOS Simulator. I get this error: Simulator is installed but is identified as 'com.apple.CoreSimulator.SimulatorTrampoline'; don't know what that is. Simulator not installed. Please visit https://developer.apple.com/xcode/download/ to download Xcode and the iOS simulator. If you already have the latest version of Xcode installed, you may have to run the command `sudo xcode-select -s /Applications/Xcode.app`. Screenshot of Expo Results My NPM Version is 6.7.0 react-native-cli: 2.0.1 react-native: 0.57.1 Expo Version

react native link using expo?

心不动则不痛 提交于 2019-11-30 01:23:23
问题 How can I use react-native link or How can I link a third party library manually in IOS and Android using exponent. I was trying to link react-native-image-crop-picker but unable to use in exponent. 回答1: You can't. It states this very clearly in the docs: But no native modules… The most limiting thing about Expo is that you can’t add in your own native modules without detaching and using ExpoKit. Continue reading the next question for a full explanation. If you want to use anything that

Unable to run project on android emulator but works with Iphone

无人久伴 提交于 2019-11-29 17:23:12
I have been having an issue running my project on the android emulator, I have had several problems and currently, I am facing this: I have had several problems before getting to thhis one where I have to change classpath 'com.android.tools.build:gradle:3.3.0' and distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip but this new error still persists. If there is any additional information required to solve this please do ask. Thanks What went wrong: A problem occurred evaluating project ':expo-react-native-adapter'. Project with path ':expo-core' could not be found

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

∥☆過路亽.° 提交于 2019-11-29 10:32:59
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 both iOS nor iOS emulator. Can someone help? EDIT I would like to add some points that maybe useful: I

Calling locally hosted server from Expo App

£可爱£侵袭症+ 提交于 2019-11-29 07:19:08
问题 I am creating a react-native app and one of the components I have created contains a property which is populated through data coming from an http request. Right now I am hosting the server from my laptop, however I am testing the app on my phone using the Expo app. Since these are two separate devices, the http://localhost:3000 calls are not working and thus I can not tell whether or not my component is properly working. Is there any way for me to run the server on my laptop and set it up so

Android Material and appcompat Manifest merger failed in react-native or ExpoKit

可紊 提交于 2019-11-29 00:58:55
I updated 'android.support:appcompat-v7' to 28.0.0 . But it brought an error from the build. Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:8:5-23:19 to override. Then I get this error in my Logcat: Manifest merger failed my app.gradle:

Converting Existing React Native Projects to Expo

大城市里の小女人 提交于 2019-11-29 00:40:30
问题 I'm considering building mobile apps in React Native using Expo and I noticed under FAQ that existing React Native projects can be converted to Expo. What exactly are we converting? I really like staying as pure and clean as possible without too many abstraction layers in the middle which can obscure my ability to understand what's really happening for things to work in the app. I'd appreciate a bit more clarification about what's really happening in the conversion process and what Expo is

React Native Expo change default LAN IP

非 Y 不嫁゛ 提交于 2019-11-28 22:19:37
问题 I've got virtual box installed. And when I look at the host > LAN > ip address is exp://192.168.56.1:19000. How can I change it without disable the network? because it's my virtualbox ip and my device can't connect to it. Thanks 回答1: You can specify the REACT_NATIVE_PACKAGER_HOSTNAME environment variable to use the correct IP address. If you're using XDE, then make sure to launch it from your project directory with xde . after you've installed the command line tools. 回答2: In windows you can

Hide header in stack navigator React navigation

℡╲_俬逩灬. 提交于 2019-11-28 04:37:20
I'm trying to switch screen using both stack and tab navigator. const MainNavigation = StackNavigator({ otp: { screen: OTPlogin }, otpverify: { screen: OTPverification}, userVerified: { screen: TabNavigator({ List: { screen: List }, Settings: { screen: Settings } }), }, }); In this case stacknavigator is used first and then tabnavigator. and i want to hide headers of stack navigator. WIt is not working properly when i use navigationoptions like:: navigationOptions: { header: { visible: false } } i'm trying this code on first two components which are using in stacknavigator. if i use this line