react-native-android

Block/Disable tabs in TabNavigator - react-navigation

筅森魡賤 提交于 2020-03-01 04:44:37
问题 I have a TabNavigator as shown in the picture. Header Image I am using TabNavigator for creating these tabs as below. const Tab_Navigator = TabNavigator({ First:{ screen: First, }, Second:{ screen: Second, }, Third:{ screen: Third, }, Now I want to block/disable "Second" and "Third" tabs. It should be visible but one shouldn't able to navigate to them. I tried blocking these tabs as shown here but I guess I am missing something. My try: Tab_Navigator.router.getStateForAction = (action, state)

react-native start giving Invalid regular expression invalid error

一曲冷凌霜 提交于 2020-02-26 09:15:10
问题 I followed following link to get started with react-native Getting started with react native I tried to create native app without expo so i as per documentation i followed following command npm install -g react-native-cli react-native init AwesomeProject After run android command react-native run-android It gave me following error on emulator So i used start command to run metro server react-native start This command gave me another error in console 回答1: There are a problem with Metro using

react-native start giving Invalid regular expression invalid error

*爱你&永不变心* 提交于 2020-02-26 09:14:00
问题 I followed following link to get started with react-native Getting started with react native I tried to create native app without expo so i as per documentation i followed following command npm install -g react-native-cli react-native init AwesomeProject After run android command react-native run-android It gave me following error on emulator So i used start command to run metro server react-native start This command gave me another error in console 回答1: There are a problem with Metro using

React Native Maps: Custom Markers cause extreme lag and slow down on android

孤街浪徒 提交于 2020-02-25 02:59:22
问题 I load up to about 2000 markers on the map. It works fine for the first few seconds but then slows down sharply. To fix it I need to clear the app data, then it only works for a few seconds and again like before. const mapMarkers = [ {id: 1, code: "603778", lat: 35.761791, lng: 51.389438}, {id: 2, code: "788621", lat: 35.712278, lng: 51.361785}, {id: 3, code: "129667", lat: 35.674757, lng: 51.485328}, {id: 4, code: "999646", lat: 35.772885, lng: 51.446735}, {id: 5, code: "111524", lat: 35

React Native Maps: Custom Markers cause extreme lag and slow down on android

烈酒焚心 提交于 2020-02-25 02:58:31
问题 I load up to about 2000 markers on the map. It works fine for the first few seconds but then slows down sharply. To fix it I need to clear the app data, then it only works for a few seconds and again like before. const mapMarkers = [ {id: 1, code: "603778", lat: 35.761791, lng: 51.389438}, {id: 2, code: "788621", lat: 35.712278, lng: 51.361785}, {id: 3, code: "129667", lat: 35.674757, lng: 51.485328}, {id: 4, code: "999646", lat: 35.772885, lng: 51.446735}, {id: 5, code: "111524", lat: 35

No such file or directory, open 'app\build\intermediates\merged_manifests\debug\AndroidManifest.xml' in React-Native

∥☆過路亽.° 提交于 2020-02-24 11:15:52
问题 After creating my React-Native project with the following command : npx react-native init AwesomeProject When I want to run the project with the following command npx react-native run-android I get the following error : info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 864 file(s) to forward-jetify. Using 8 workers... info Starting JS server... error ENOENT: no such file or directory, open 'app\build\intermediates\merged

No such file or directory, open 'app\build\intermediates\merged_manifests\debug\AndroidManifest.xml' in React-Native

岁酱吖の 提交于 2020-02-24 11:14:33
问题 After creating my React-Native project with the following command : npx react-native init AwesomeProject When I want to run the project with the following command npx react-native run-android I get the following error : info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 864 file(s) to forward-jetify. Using 8 workers... info Starting JS server... error ENOENT: no such file or directory, open 'app\build\intermediates\merged

react-native - How to display map using react-native-maps

穿精又带淫゛_ 提交于 2020-02-07 08:40:19
问题 I am trying to display a Map View using react-native-maps. The component appears to be displaying except it is blank. Is it my stylesheet or am I calling the 'MapView' component right? Here is the code: var MapView = require('react-native-maps'); class Map extends React.Component { constructor(props) { super(props); this.state = { } } render() { return ( <View style={styles.container}> <MapView style={styles.map} initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0,

react-native - How to display map using react-native-maps

≯℡__Kan透↙ 提交于 2020-02-07 08:39:39
问题 I am trying to display a Map View using react-native-maps. The component appears to be displaying except it is blank. Is it my stylesheet or am I calling the 'MapView' component right? Here is the code: var MapView = require('react-native-maps'); class Map extends React.Component { constructor(props) { super(props); this.state = { } } render() { return ( <View style={styles.container}> <MapView style={styles.map} initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0,

Unable to install Expo CLI through NPM

最后都变了- 提交于 2020-02-06 08:48:45
问题 All was working fine and I was running Expo version 3.11.5, but the log said to update it to 3.11.7. I ran that command and it ruined my project. Please find the error logs below. PS C:\Users\MY PC\My_React_Native\fruits-vegetables> npm install --global expo-cli npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are