expo

How Do I Convert Image URI into Byte Expo

拥有回忆 提交于 2020-02-04 05:29:24
问题 I'm uploading image using expo-image-picker . but the issue is I want to send the image to the server through WebAPI in the form of Byte. So how can I convert the image URI into Byte? if anyone have experience on it so kindly share. componentDidMount() { this.getPermissionAsync(); } getPermissionAsync = async () => { if (Constants.platform.ios) { const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL); if (status !== 'granted') { alert('Sorry, we need camera roll permissions to

Expo cannot update npm packages due to SELF_SIGNED_CERT_IN_CHAIN

Deadly 提交于 2020-02-04 05:18:09
问题 Expo for React Native requires the dependency for react-native to be formatted like this: "dependencies": { "expo": "^30.0.1", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz" } When I use npm install to update node packages, I get the following error npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN npm ERR! request to https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz failed, reason: self signed

How can I debug memory leaks in react-native Expo project?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-30 09:42:05
问题 I am running a react-native Expo project on both ios simulator, which uses XCode, and android emulator, which uses genymotion. There is a crash sometimes when using the app on real android phone. I am hoping to find out the reason debugging it on the emulator. So far, I searched for tools for this, but did not encounter any. Could anyone tell me available tools for debugging memory leaks on genymotion emulator? I also welcome any other advices to fix my problem. Thanks in advance! 回答1: You

how do i change firebase output to text with native react from what i have now

非 Y 不嫁゛ 提交于 2020-01-25 08:33:04
问题 I want to get the output to say a just 'hi' instead of -LrM8rlKq1-dSW6XRt0_({"color: 'blue"}) on any of the outputs(update, delete, create ), and how do I hide seletedid(-LrM8rlKq1-dSW6XRt0_) from showing up on the display ///////////////////////////////////////////////////////////////////////////////////////////////////////// import React, { Component } from 'react'; import { View, Text, StyleSheet, Button, TextInput, TouchableOpacity } from 'react-native'; import firebase from './firebase';

How to mock StatusBarManager.getHeight in Jest test?

妖精的绣舞 提交于 2020-01-25 08:16:08
问题 I'm using expo 34 and react-native-ui-lib from wix and have a problem to setup jest tests for my components. The problem looks to appear in link of the wix library function setStatusBarHeight() { statusBarHeight = isIOS ? 20 : StatusBarManager.HEIGHT; if (isIOS) { // override guesstimate height with the actual height from StatusBarManager StatusBarManager.getHeight(data => (statusBarHeight = data.height)); } } TypeError: StatusBarManager.getHeight is not a function TypeError: StatusBarManager

unable to resolve module './fonts/Entypo.ttf' from '/home/pfe/node_modules/@expo/vector-icons/Entypo.js'

有些话、适合烂在心里 提交于 2020-01-24 23:06:44
问题 When i try to run my application using expo i have this error : unable to resolve module './fonts/Entypo.ttf' from /home/pfe/node_modules/@expo/vector-icons/Entypo.js' npm : 4.3.0 react-native-cli : 2.0.1 react-native : 0.42.0 expo@ 15.1.3 回答1: I had that issue. Check last comment in https://github.com/expo/vector-icons/issues/8. If that doesn't work, then read all of the comments. I hope that helps 来源: https://stackoverflow.com/questions/43967521/unable-to-resolve-module-fonts-entypo-ttf

unable to resolve module './fonts/Entypo.ttf' from '/home/pfe/node_modules/@expo/vector-icons/Entypo.js'

人盡茶涼 提交于 2020-01-24 23:06:03
问题 When i try to run my application using expo i have this error : unable to resolve module './fonts/Entypo.ttf' from /home/pfe/node_modules/@expo/vector-icons/Entypo.js' npm : 4.3.0 react-native-cli : 2.0.1 react-native : 0.42.0 expo@ 15.1.3 回答1: I had that issue. Check last comment in https://github.com/expo/vector-icons/issues/8. If that doesn't work, then read all of the comments. I hope that helps 来源: https://stackoverflow.com/questions/43967521/unable-to-resolve-module-fonts-entypo-ttf

How to fix pod install error glog is too old or missing react native ios in windows 10

余生长醉 提交于 2020-01-24 22:23:13
问题 I wanted to detach expo in my expo project to get the bare react native project after expo detach i run pod install bring me this error that during installing glog that script is too old or is missing [!] C:/Program Files/Git/usr/bin/bash.exe -c set -e #!/bin/bash # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. set -e PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"

How to avoid page breaks inside content sections in output PDF generated from HTML using Expo.printToFileAsync on iOS

北城以北 提交于 2020-01-24 19:41:05
问题 I am creating an app which has a full of lists in a tab, and these lists have their data include (again lists inside, we can call them sublists). I use the expo to build this app, and I use expo print API to convert these lists to PDF. When user tab to share, these lists saved to PDF and open share screen in IOS. Then the user can send this PDF file in any desirable way; It can be an attachment in a mail or whats app or any other included application, The main problem is page-breaks in PDF,

Convert Expo project to Original React Native project

空扰寡人 提交于 2020-01-23 19:01:06
问题 I did yarn run eject to eject but it gave me this warning Warning! We found at least one file where your project imports the Expo SDK I know I have some modules which use Expo API like this - await Expo.Font.loadAsync({ Roboto: require('native-base/Fonts/Roboto.ttf'), Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'), }); Now I want to convert this to React Native Components so that I can eject without any errors so that I get index.android.js & index.ios.js in the root folder