expo

Remove expo from react native

瘦欲@ 提交于 2019-12-10 03:09:23
问题 I've had so many troubles with the tool, I seriously have been debugging expo morethan the app itself. How might I remove expo completely from CRNA? I would like to use CRNA and it's debugging tools without expo 回答1: You can do it by ejecting your app running npm run eject Then, if you have any reference to expo just remove all of them. your app modules before being ejected looks like this below: When you run npm run eject it will ask some questions like: be sure to select React Native: I'd

How can I add links in a Highcharts tooltip that will open on mobile's browser?

人走茶凉 提交于 2019-12-09 02:07:08
问题 I am developing a React Native app with expo. One of the screens contains a graphic created with Highcharts. All points have an associated tooltip with some text, to which I would like to add a link that would open the URL in the browser (that is, outside the app). Very basically, the app code looks like this: import ChartView from 'react-native-highcharts'; render() { let Highcharts = "Highcharts"; let config ={ chart: { type: "line", animation: Highcharts.svg, ... tooltip: { followTouchMove

Expo, Firebase, Login with google

佐手、 提交于 2019-12-08 07:12:37
问题 in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Googlefor a normal sign in with google first, Which was working, then using the idToken and accessToken to authenticate with firebase. signInWithGoogleAsync = async () => { try { const result = await Google.logInAsync({androidClientId: ***, iosClientId: ***, scopes: ["profile", "email"] }); if (result.type === "success") { // I get result object const credential = firebase.auth

Expo, Firebase, Login with google

◇◆丶佛笑我妖孽 提交于 2019-12-08 02:44:26
in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Google for a normal sign in with google first, Which was working, then using the idToken and accessToken to authenticate with firebase. signInWithGoogleAsync = async () => { try { const result = await Google.logInAsync({androidClientId: ***, iosClientId: ***, scopes: ["profile", "email"] }); if (result.type === "success") { // I get result object const credential = firebase.auth.GoogleAuthProvider.credential( result.idToken, result.accessToken); /* credential is and xf {} object */

React Native app does not start in Expo app

坚强是说给别人听的谎言 提交于 2019-12-07 16:36:30
问题 I have HTC M8s with Expo installed on which I want to test my apps written in React Native. I run my app in a console, scan QR code and try to connect to my app from my smartphone - unfortunately, I see an error saying that it could not load exp://myaddress:port. I am using Windows 10 and both my PC and my smartphone are connected to the same WiFi network. Here's the result of ipconfig command: Ethernet adapter Ethernet: Media State . . . . . . . . . . . : Media disconnected Connection

How to play Youtube videos using Expo

◇◆丶佛笑我妖孽 提交于 2019-12-07 11:36:18
问题 I am trying to use the react-native-youtube component in my expo project. However, I couldn't get it to work. All I have so far is a black screen with red borders. I tried following the video instructions on online however, expo doesn't have an iOS or Android folder, which means I can't open it in XCode and fiddle with it. How can I play youtube videos using expo? As you might have noticed from my question I'm new to react-native using expo. 回答1: At the moment, YouTube is not supported by

React Native - Expo Audio stop all sounds

半世苍凉 提交于 2019-12-07 09:34:00
问题 I am using Expo Audio to play some short sounds from a list. async playAudio(file) { try { await Audio.setIsEnabledAsync(true); const sound = new Audio.Sound(); await sound.loadAsync(file); await sound.playAsync(); } catch(error) { console.error(error); } } Which I'm calling from a list rendered with list.map() renderTheList = (item, i) => { return ( <View key={i}> <TouchableOpacity onPress={ () => { this.onAudioSelected(item.audio) }}> </TouchableOpacity> </View> ) } onAudioSelected(audio) {

Expo Linear Gradient transparent is showing up blackish

拜拜、爱过 提交于 2019-12-07 06:30:31
I'm trying to get a bottom to top white to transparent-white transition in my React Native screen using Expo Linear Gradients: https://docs.expo.io/versions/latest/sdk/linear-gradient.html I copied the second example and flipped it around, and made it white instead of black. But now the "transparent" the white is supposed to fade in to is darker that the white is, see below: The transparent actually is see through so that's good but is there a way to give it a white hue? Code here: <LinearGradient colors={[ 'transparent', 'rgba(255,255,255,0.8)']} style={{ position: 'absolute', left: 0, right:

How do I get a React Native app to run properly on an iPad?

流过昼夜 提交于 2019-12-07 05:09:39
问题 My React Native app was just rejected by Apple because We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 10.3.3. To resolve this issue, please revise your app to ensure it runs and displays properly at iPhone resolution on iPad. Even if your app was developed specifically for iPhone, users should still be able to use your app on iPad. They provided the following screenshot: Indeed, it does all look pretty squished, but I'm not sure what I'm doing

Using custom Font in react native with expo, loading font every time

风格不统一 提交于 2019-12-07 03:08:01
问题 I am using Expo and the create-react-native app. I enjoy the live/hot reloading feature on my phone, but I'm wondering about custom fonts. https://docs.expo.io/versions/v17.0.0/guides/using-custom-fonts.html#loading-the-font-in-your-app The API for Expo only has directions to load them asynchronously. Do I have to do this on every component I want a custom font on? This seems like it would cause some unnecessary calls when I've already loaded it once. Is there a way to set the font as global