react-native-android

Could not connect to development server running React Native even though development server receives ping

落花浮王杯 提交于 2019-12-11 06:08:20
问题 This is for React Native on Android. When I try to start my React Native screen in my app I get the red screen that says Could not connect to development server . However this can't be true. Every time I try to reload the Javascript I see the following update in the terminal that's running my react native server: Bundling `index.android.js` Transforming modules 100.0% (390/390), done. Bundling `index.android.js` No module changed. Bundling `index.android.js` No module changed. Clearly it's

DeviceInfo native module is not installed correctly in react native

左心房为你撑大大i 提交于 2019-12-11 06:05:40
问题 Hi I am trying to run my react-native android application on the device. It was working well, suddenly I am getting an error on running application. DeviceInfo native module is not installed correctly I have checked this DeviceInfo native module is not installed correctly but it did not work for me. I restarted my system to kill all process. Can anyone help me how to solve this issue ? D:\React Native\ReduxExample1>react-native -v react-native-cli: 2.0.1 react-native: 0.44.0 D:\React Native

React Native release fails to start

本秂侑毒 提交于 2019-12-11 05:51:59
问题 React Native release build fails to start. Below is the logcat message ReactNativeJS: Can't find variable: runInContext 03-09 18:45:53.178 20609 20633 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication) 03-09 18:45:53.195 20609 20634 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules 03-09 18:45:53.195 20609 20634 E AndroidRuntime: Process: com.myapp, PID: 20609 03-09 18:45:53.195 20609 20634 E AndroidRuntime: com.facebook.react.common

React Native Undefined is not an Object (evaluating 'this.state.input')

谁都会走 提交于 2019-12-11 05:49:38
问题 I am trying to build a word dictionary that translates English words to German words by following this tutorial. It utilize a json file which, I believe, contain keys with English words and its corresponding German words as values. The tutorial do that by using the require statement var english_german = require('./english_german.json'); but I would like to know if there is an alternative by using the import statement instead. The main problem I am facing, though, is that I am getting a

React-native application does not shut down on back button

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:37:47
问题 My react-native application (on Android) does not shut down when back button is pressed. It closes and goes in the background and runs there (animates). I also tried this, but got the same outcome: BackHandler.addEventListener('hardwareBackPress', () => { console.log('back pressed'); BackHandler.exitApp(); }); I want it to completely shut down when I press back or home button. P.S. I'm using Expo for development and deployment, and also start the app through it. 回答1: constructor(props) {

React-Native: when to go for redux state and react state in app?

大城市里の小女人 提交于 2019-12-11 05:33:24
问题 I have implemented redux in my application. My scenario is when navigating from one component to another component, I'm updating the redux state. So when I come back to the previous component, getting the last redux state data. Expected Result: When I come back to previous component, need to be in same state. I don't want the recent changes data. Ex: Marie ->April, when I go back, Marie <- April Actual Result: Its updating the recent changes data. Ex: Marie ->April, when I go back, April <-

React Native Image Picker: “undefined is not an object (evaluating 'ImagePickerManager.showImagePicker')”

孤街醉人 提交于 2019-12-11 04:27:07
问题 I followed the Readme from react-native-image-picker with both manual and automatic linking (tried both separately). When I launch simulator from terminal using react-native run-ios I get the error. When launching from Xcode it works fine, I can access the CameraRoll picker no problem. Here are the versions I'm using: "react-native": "0.43.3", "react-native-image-picker": "^0.26.3", I saw a similar thread here stackoverflow and it seems I'm not the only one having this issue. Thank you for

React Native android: App opened with Intent, Pass data to javascript

浪子不回头ぞ 提交于 2019-12-11 03:39:22
问题 I need to read NFC Tag ID in react native android app. I tried using nfc-react-native module but unfortunately it didn't work for me. So I've edited it. I went through all documentations / articles about using NFC tag in react-native, writing custom android (native) components for react native but no success. With help of some other questions here, I could manage to register the app to run when a NFC Tag have been tapped to the device. But I couldn't pass the Intent data to javascript. I read

How to crash a react native android app

久未见 提交于 2019-12-11 03:13:10
问题 I am working on react-native-firebase crashlytics. I am using rnfirebase starter kit. There we have crashlytics integrated with the project. Now, I want to crash my app to check the crash report. 回答1: You need to import packages react-native-fabric and another line in initial file. import Fabric from 'react-native-fabric'; var { Crashlytics } = Fabric; Crashlytics.crash(); 回答2: You need to need to import the crashlytics and use crash() to do a manual crash. import crashlytics from 'react

react-native-paytm not working for android

你。 提交于 2019-12-11 03:12:54
问题 I am trying to use react-native-paytm, I followed the steps and example that was there in it. But after clicking on pay via PayTm button, it is showing me raw html having a form with all my data in hidden input element. Can someone assist me with it? 回答1: This issue generally comes when you don't pass correct values of paytm parameters. One should check the correct values in the profile of paytm. 来源: https://stackoverflow.com/questions/51264762/react-native-paytm-not-working-for-android