react-native-android

Go back to debugging after created release version with react-native bundle (Android)

不打扰是莪最后的温柔 提交于 2019-12-04 13:45:17
So I have created my Application using React native and just produced my first release-build. My problem now is that I can't get back to react natives debug-mode. By following the documentation, this is what i did. react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/ This code generated the bundled index.android.bundle and index.android.bundle.meta Now every time I execute react-native run-android , the javascript code-base wont update the application and I am not able to access the development(shake) menu in my app. If I

Showing fcm notification message in JSON format when app is killed or in background in react-native-fcm

◇◆丶佛笑我妖孽 提交于 2019-12-04 12:31:41
问题 I am using react-native-fcm library for android device. I am getting notification properly when my application is running, but when my application is in the background or killed then I am getting notification data in JSON format similarly in an image I shared here. componentDidMount() { // iOS: show permission prompt for the first call. later just check permission in user settings // Android: check permission in user settings FCM.requestPermissions().then(()=>console.log('granted')).catch(()=

React native Airbnb Markers: Markers successfully disappear, but do not re-appear

半腔热情 提交于 2019-12-04 10:13:30
I am currently building an app with react-native and am using the Airbnb maps plugin to dynamically display markers. My markers are downloaded from the firebase database successfully, and the array that is downloaded always shows the correct contents. I have the full code here just in case https://codepen.io/yeni/pen/Kqyrxv?editors=0010 :) Whenever I change the cur_user property of a marker to 1 , it is successfully not shown on the map. However, when I change cur_user back to 0 , the marker is not display (which would be the desired behavior). My code looks as follows: //Store file

How to implement a React Native UI component method in Android

匆匆过客 提交于 2019-12-04 10:10:27
It's clear to me that for react-native native modules we can use the @ReactMethod to export a method and call it from JSX, but how do we do the same thing in react-native native UI components? In the documentation I only see @ReactProp being mentioned. If @ReactMethod is not working, how do I access a property of my native UI component from JSX then? (On iOS this can be done on native ui components with RCT_EXPORT_METHOD but on Android is something similar possible?) Thank you. Ok I ended up creating a Module, and passing a UI Component reference on it's constructor: Here's my UI component :

React-native fbsdk build errors

喜夏-厌秋 提交于 2019-12-04 09:55:54
I am getting the following errors while running the command react-native run-android or ./gradlew build :react-native-fbsdk:generateReleaseResValues UP-TO-DATE :react-native-fbsdk:generateReleaseResources :react-native-fbsdk:mergeReleaseResources :react-native-fbsdk:processReleaseManifest :react-native-fbsdk:processReleaseResources /Users/a/projects/gratisapp/node_modules/react-native-fbsdk/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.3.1/res/values-v24/values-v24.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android

How to Set background image of DrawerNavigator in React-Native?

本小妞迷上赌 提交于 2019-12-04 09:48:45
I integrate DrawerNavigator in my project. its working fine, but there are no any property to set background image. How can I will add background image in DrawerNavigator. DrawerNavigator Code of DrawerNavigation import { AppRegistry , Dimensions} from 'react-native'; import Library from './ViewControllers/Library'; import Language from './ViewControllers/Language'; import AboutUS from './ViewControllers/AboutUS'; import Support from './ViewControllers/Support'; import { DrawerNavigator } from 'react-navigation'; const MyApp = DrawerNavigator({ Library: { screen: Library, }, Language: { screen

Android app link not working after the application is made live in play store

戏子无情 提交于 2019-12-04 09:18:57
I have implemented Android app links based on the below links. https://developer.android.com/studio/write/app-link-indexing.html https://developer.android.com/training/app-links I have hosted assetlinks file into our domain https://ourdomain/.well-known/assetlinks.json And also I have verified this using https://developers.google.com/digital-asset-links/tools/generator and from android studio's App Links Assitant also. and got verified status from both the ways. Now when I generate a signed build and tested it via google drive links. Android app link works as expected(on click of the link the

ACCESS_FINE_LOCATION not working

一曲冷凌霜 提交于 2019-12-04 05:56:50
The following is my AndroidManifest.xml ... <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" /> <application android:name=".BeaconApp" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard

Trying to add MultiDex support - cannot find symbol context and MultiDex

折月煮酒 提交于 2019-12-04 04:09:57
After following the instructions mentioned at: https://developer.android.com/studio/build/multidex.html#mdex-gradle I am getting an error cannot find symbol class Context variable context and variable MultiDex . package com.mycompany.mypackage; import android.app.Application; import android.util.Log; import com.facebook.react.ReactApplication; import com.slowpath.hockeyapp.RNHockeyAppModule; import com.slowpath.hockeyapp.RNHockeyAppPackage; import com.microsoft.codepush.react.CodePush; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactNativeHost; import com

React Native Android: Showing an Activity from Java

社会主义新天地 提交于 2019-12-04 04:05:57
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 which modules for react-native are using activities it could help as well. (showing an android activity in