react-native-android

React Native - How to use React Navigation with React Native Maps?

你说的曾经没有我的故事 提交于 2019-12-24 18:46:37
问题 I have a scene that show some monuments in my city. When I press a marker (monument) it shows the name of the monument. What I want to do is, when I press that name I want to transit to a determined scene (with react-navigation). I wrapped the name of monument with a TouchableHighlight and on press I call the 'navigate' method. But it simply dont transit, it does nothing. Not even an error. Here is my code: render(){ const { navigate } = this.props.navigation; const { data } = this.props

React Native elevation and position absolute

孤街浪徒 提交于 2019-12-24 18:42:55
问题 Trying to add elevation (shadow) to View works, however my second View , which renders circle, hides under View with elevation property. If elevation is removed, circle with position: 'absolute' is working properly. Any ideas how to use elevation and position View absolute? My Code: import React, { Component } from 'react'; import { StyleSheet, Text, View, Platform, TouchableOpacity } from 'react-native'; import { Font } from 'expo'; export default class Position extends Component { render()

react-native run-android got stuck with a white-display on android-studio simulator written “Loading from 10.0.2.2.8081”

孤者浪人 提交于 2019-12-24 16:58:01
问题 I am a newbie in react-native.I followed the official documentation of react-native to install it on linux-ubuntu. I followed all the steps.Everthing is running fine except of this problem. react-native run-android command is running successfully , but got stuck with a white background with green strip on the top . The green color strip on the top of emulator is written as " loding from 10.0.2.2.8081" I am stuck on this problem ,everthing else is running fine ,but the android simulator is

How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?

瘦欲@ 提交于 2019-12-24 15:42:14
问题 I have a React Native application built with Expo. On How can I add links in a Highcharts tooltip that will open on mobile's browser? I was able to pass a URL to Highcharts so that when a tooltip is clicked, that URL is opened: return( <View style={styles.container}> <ChartView onMessage={m => this.onMessage(m)} config={config} /> </View> This triggers this method to open the URL: onMessage = (m) => { let data = JSON.parse(m.nativeEvent.data); Linking.openURL(data.url) }; And the URL gets

Native modules for sensors not available. Did react-native link run successfully?

谁说我不能喝 提交于 2019-12-24 08:01:25
问题 I followed the first steps of the React Native tutorial here: https://facebook.github.io/react-native/docs/getting-started.html Then I want to read information from the device sensors. For that I also followed this tutorial: https://medium.com/react-native-training/using-sensors-in-react-native-b194d0ad9167 and ended up with this code (just copy/pasted from there): // Reference: // https://medium.com/react-native-training/using-sensors-in-react-native-b194d0ad9167 // https://react-native

Could not determine wrapper version

被刻印的时光 ゝ 提交于 2019-12-24 07:58:36
问题 I've created a react native app, by simply doing: react-native init app I've followed this tutorial: Facebook Getting Started (I use Linux) and I have done exactly what it says. However, when I try to run the app ( react-native run-android ), I got the following message: Starting JS server... Building and installing the app on the device (cd android && ./gradlew installDebug)... Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version. at org.gradle.wrapper

ViewPager with fragments doesn't draw pages after initial drawing (2) - bridge to react-native

泄露秘密 提交于 2019-12-24 07:26:01
问题 I am using react-native and for layout purposes, unfortunately, I am forced to bridge to some native android code. The problem I am facing is that the ViewPager only displays the first 2 pages (fragments). If I swipe to the third, it's empty. If I go back to the first it's not there anymore and finally, getting to the fourth and nothing is visible anymore. This is of course as a result of only the first 2 fragments actually being drawn that are actually drawn/visible). Also, the fragment

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation

时光总嘲笑我的痴心妄想 提交于 2019-12-24 06:51:10
问题 I switched from react native navigation v1 to v2 and I have theses 5 errors when trying to sync my files with Android Studio. Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation. Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :react-native-navigation. Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :react-native-navigation.

Windows 7, npm install -g react-native-cli gives “Cannot read property 'path' of null”

≡放荡痞女 提交于 2019-12-24 06:08:14
问题 I am Beginning the getting started react native tutorial by following the official docs from here https://facebook.github.io/react-native/docs/getting-started.html Finished installing choco, nodejs and python without any trouble While doing npm install -g react-native-cli i get "Cannot read property 'path' of null" (full error below) npm install -g react-native-cli C:\Windows\system32>npm install -g react-native-cli npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node

Opening Contacts app in react native

本秂侑毒 提交于 2019-12-24 03:07:57
问题 I am making a react native app and in one screen there is a form in which user has to fill the form in which the user has to fill his mobile number so I am making a button which will open the contacts app of the user phone and the user can select the conatct number from that list and that number gets filled in the field . I found this link react-native-contacts but i think that it is taking all the contact Lists and displaying it in the react native app using List View but I do not want this