exponentjs

How can I upload a photo with Expo?

徘徊边缘 提交于 2019-12-29 14:34:10
问题 I'm making an app with Expo and want to let the user take a photo or pick one from their camera roll and upload it to my server. How do I do this? 回答1: Use the Expo ImagePicker API to display either the camera or the camera roll and get back information about the selected image: async function takeAndUploadPhotoAsync() { // Display the camera to the user and wait for them to take a photo or to cancel // the action let result = await ImagePicker.launchCameraAsync({ allowsEditing: true, aspect:

NativeBase + Exponent Header

眉间皱痕 提交于 2019-12-03 16:16:53
问题 I'm using NativeBase with Exponent. The Header goes beneath the phone's StatusBar. You can see this in the NativeBase demo that Exponent released. Does anyone have a fix for this? 回答1: Since this issue only comes up in Android, the recommended way to fix this would be to target Android specifically using Platform : import {Platform, StatusBar} from 'react-native' const styles = StyleSheet.create({ container: { flex: 1, ...Platform.select({ android: { marginTop: StatusBar.currentHeight } }) }

react native link using expo?

ⅰ亾dé卋堺 提交于 2019-12-01 02:36:54
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. Michael Cheng 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 requires react-native link , then you need to detach your project and then develop it with or

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

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

What is the difference between Expo and React Native?

落花浮王杯 提交于 2019-11-26 04:37:23
问题 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? 回答1: 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