react-native-android

react-native run-android fails, could not install app

有些话、适合烂在心里 提交于 2020-01-04 05:51:30
问题 I m having a problem when I try to run my react-native application in my Android Device. The device is connected even when I make sure that it is. adb devices List of devices attached HMNBBCE6A2826109 device Device: Huawei Y2 Android Version: 5.1 Debug mode: enbaled the server is running. When i run react-native run-android I get this error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have

React Navigation Tabs not Clickable with absolute position

有些话、适合烂在心里 提交于 2020-01-04 02:15:07
问题 I have 2 screen in react native and I wanna make the tabs navigator transparent, it works but the navigator not clickable after adding position: absolute , if I'm not using the absolute the background turning white (can't transparent) this is my tabBarOptions tabBarOptions: { showIcon: true, showLabel: true, activeTintColor: 'orange', inactiveTintColor: '#fff', style: { width: '100%', height: 60, backgroundColor: 'transparent', borderTopWidth: 0, position: 'absolute', left: 0, right: 0,

KeyboardAvoidingView works on EXPO but not on APK?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-03 08:26:13
问题 I bought this Theme which in Expo works flawlessly, but as soon as I build the APK, the Keyboard will cover the whole screen and wont work as supposed. I'm using expo for testing and it works just fine. return ( <SafeAreaView style={styles.container}> <NavHeader title={thread.name} {...{navigation}} /> <FlatList inverted data={messages} keyExtractor={message => `${message.date}`} renderItem={({ item }) => ( <Msg message={item} name={item.me ? name : thread.name} picture={thread.picture} /> )}

React-native Airbnb-Maps: How do I render a button inside the airbnb maps pop-up box?

徘徊边缘 提交于 2020-01-03 02:48:21
问题 I am trying to render a button which I can use to redirect to another page within the description page (the pop-up-box if you select a marker) using AirBnb maps (using MapView.Markers ). I am not sure how to achieve this. Currently my markers look as follow: const markers = [{ longitude: 8.545592, latitude: 47.366465, description: "Bike 1", title: "Bike 1" }, { longitude: 8.545892, latitude: 47.366365, description: "Bike 2", title: "Bike 2" } ]; Whenever I try to input JSX into a text, I get

Packager not started after running “react-native run-android”

心已入冬 提交于 2020-01-02 11:27:14
问题 I am new to React-Native. When I am following the official tutorial to deploy my app to Android, it show a red screen saying that "Could not connect to development server". I am running on a physical device so I tried adb reverse tcp:8081 tcp:8081 but the problem was not solved. I googled around and found that I have to run: react-native start So is it a must to keep a terminal opened and running react-native start ? Because this is not documented in official tutorials and I even don't know

How to send push notification with image in react-native android using rnfirebase

一世执手 提交于 2020-01-02 07:54:25
问题 I am sending notification only and notification-data push notifications successfully in android using rnfirebase. How can i send data only push notification with image as I am following https://rnfirebase.io/docs/v5.x.x/notifications/receiving-notifications 回答1: If you are displaying your notifications with firebase.notifications().displayNotification , you can use Notification.BigPictureStyle in order to display an image in your notification by calling setBigPicture on notification.android .

Got 'One of the sources for assign has an enumerable key on the prototype chain' on React native app

假装没事ソ 提交于 2020-01-02 04:34:08
问题 I am using react-native for Android app. And use axios as http library. When I try to send a Blob object through http post I will get below error: HTTP Failure in Axios TypeError: One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? We don't allow it, as this is an edge case that we do not support. This error is a performance optimization and not spec compliant. Below is the code I used to add blob object on form data: let

React Native Android: Showing an Activity from Java

爱⌒轻易说出口 提交于 2020-01-01 09:33:43
问题 I need to show an Activity ( Native android, Java ) in React-native. I know it have been asked few times, But none helped me. I didn't find any tutorial or documentations on how to call/open the activity in React-Native. where to put the activity and how to register/add it to project. Is there any tutorial or sample code? I'm using react-native-camera , when i run it from RN, it shows a view from rn-camera, i looked into it's source code but it doesn't have an Activity. If you could tell

occurred configuring project ':app'. > Failed to notify project evaluation listener

我怕爱的太早我们不能终老 提交于 2020-01-01 08:33:33
问题 I would like to start my first application react-native but when i write in the command line "react-native run-android" it say : What went wrong: A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. > javax/xml/bind/annotation/XmlSchema Does anyone know what could be the problem? 回答1: I had this same issue and it was due to having two versions of JDK installed v8 & v9. By removing v9, I was able to resolve the issue (Mac User). If you only have

occurred configuring project ':app'. > Failed to notify project evaluation listener

点点圈 提交于 2020-01-01 08:33:05
问题 I would like to start my first application react-native but when i write in the command line "react-native run-android" it say : What went wrong: A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. > javax/xml/bind/annotation/XmlSchema Does anyone know what could be the problem? 回答1: I had this same issue and it was due to having two versions of JDK installed v8 & v9. By removing v9, I was able to resolve the issue (Mac User). If you only have