expo

Do OTA updates in Expo get in motion on the first opening after brand new download from the stores?

偶尔善良 提交于 2020-01-22 23:57:05
问题 I developed an app with React Native and distributed it with Expo. I published the final version into Google Play and Apple Store. Some time later I discovered in Expo's docs on Publishing that expo publish allows you to create an OTA ("over the air") update that is built into Expo and updates the app automatically, according to this answer: The standalone app knows to look for updates at your app's published url. This I tested and worked very well. However, now I see that people downloading

Ejecting from Expo

家住魔仙堡 提交于 2020-01-22 02:43:04
问题 I have to eject from expo in my react native project, but I still want to maintain some functionalities provided by their libraries, like notifications. Is it possible? Thanks in advance! 回答1: Starting with SDK33 Expo was changed to install its own modules separately as required. If you have installed and used the notification module using expo install , you can use it normally even with an eject . Check whether a module is available on MainApplication.java for Android or info.list for ios.

Reading a file from Expo's cache as base64, writing to firebase storage (Cloud Storage for Firebase)

北城余情 提交于 2020-01-22 02:26:13
问题 After using expo's ImagePicker and saving the image in the local cache, I am trying to save the image to firebase storage (or its new name, Cloud Storage for Firebase). The relevant code is: base64String = FileSystem.readAsStringAsync(photoUri, { encoding: FileSystem.EncodingTypes.Base64 }); and then ref.putString(base64String,'base64', { contentType: 'image/jpeg' }) However, something is wrong with the image that I save to firestore, and I cannot view it (either directly from the firestore

React Native Failed Upload Image

随声附和 提交于 2020-01-22 02:05:12
问题 I am struggling from the past 2 days to crack the file/image upload with React Native to MongoDB. I literally read all the related forums but there is no luck. I read couple of forums and they gave a sample example but I wasn't succeeded. Here are the sample codes that I wrote. Client Side : const { uri } = await this.camera.takePictureAsync(options); let formData = new FormData(); formData.append('file', { uri: uri.replace("file:///", ""), type:'image/jpg', name:'userProfile.jpg', }); const

Load custom native component in react native using expo kit

ⅰ亾dé卋堺 提交于 2020-01-21 06:20:07
问题 Im trying to load a custom Android WebView to be able to upload files using html file inputs (by default Android webview wont work with input file). Im using this code, the only difference is that im using expo kit, so my MainApplication.java is different (inherits from another class by default): public class MainApplication extends MultiDexApplication { // Needed for `react-native link` public List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new

React Native Android Clipping Children

让人想犯罪 __ 提交于 2020-01-17 01:11:11
问题 I am creating a react native app using expo, and I am creating a dropdown in the header. On iOS the dropdown works as desired, and goes 'above' the main content, while on Android it is clipped or goes 'under'. I am not sure if in reality iOS is acting strange, or Android is. The header is a custom headerTitle component, which holds the custom dropdown component (a view, which holds the dropdown items (Views with text and icons) I am looking to get around this issue, and I have tried zIndex

How to handle locked orientation using React Native Stack Navigation

六月ゝ 毕业季﹏ 提交于 2020-01-16 05:24:27
问题 I've an React Native Expo app running on both iOS and Android using Stack Navigation with two views. The first view is locked to portrait screen orientation export class HomeScreen extends Component { componentWillMount() { ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP); } render() {... } } The second view should be available in both portrait and landscape screen orientation: export class DetailScreen extends Component { componentDidMount() { ScreenOrientation

Can't archive with Xcode (error - PhaseScriptExecution failed with a non zero exit code), but the build is successful

匆匆过客 提交于 2020-01-14 14:27:05
问题 I am sorry for the black marks in the image. I have seen multiple posts suggesting an answer to this problem, Lock unlocks keychain (tried it), pod Update (tried it), clear build(tried it), signing, skip install in build settings(tried it) - None of them actually worked. I built my iOS app in react native with Expo, after which I did expo eject to create the iOS folder for Xcode build and archiving, the build is successful every time and it even runs on the simulator and in my device(iPhone 7

Uninstalling Expo CLI

隐身守侯 提交于 2020-01-13 07:51:28
问题 I have installed Expo CLI globally and cant start a new react native app without using expo cli and therefore would like to uninstall it from my system. I have spent hours trying to work out how to removeit globally from my system 回答1: if you are using npm then this command will work for uninstalling expo cli npm -g uninstall expo-cli --save 回答2: I had the same problem and after searching I found this command: npm -g uninstall expo-cli --save finaly expo-cli is deleted from my pc but it still

How to solve the git permission denied problem with expo init on MacOS?

放肆的年华 提交于 2020-01-06 08:03:38
问题 I was having this annoying git problem with expo init command on my Mac. MacBook-Pro:ReactNativeProjects SoftwareTheory$ sudo expo init proj2 Password: ? Choose a template: expo-template-blank ? Choose which workflow to use: managed ✔ Please enter a few initial configuration values. Read more: https://docs.expo.io/versions/latest/workflow/configuration · 100% completed [11:58:15] Extracting project files... [11:58:15] Customizing project... [11:58:15] Unable to initialize git repo. `git` not