How to fetch private network using android and react-native
I'm currently trying to access local network (192.168.1.**) from my android react-native application.I've no access to the internet but only some website from my company. (I can access them throw...
View Articlereact-native-fs path not found?
import RNFS from 'react-native-fs'; var path = RNFS.DocumentDirectoryPath + '/test.txt'; RNFS.writeFile(path, 'Lorem ipsum dolor sit amet', 'utf8') .then(success => { console.log('FILE WRITTEN!');...
View ArticleHow to set borderRadius on a react-native modal?
I have a react-native Modal, I would like to render it with rounded corners like this: but if I define it like this: <Modal style={{ borderTopLeftRadius: 10, borderTopRightRadius: 10, overflow:...
View Articlereact navigation modal buttons are un-clickable on android
I'm testing my app on Android only to realize that it's impossible to close or click on any button inside my React Navigation modal on Android, when it works on iOS.I can't find a reason for this and...
View ArticleCalling Native Java method from React Native in Javascript
I am trying to call an Android native method showJ from Javascript in React Native but I keep getting the error : 2019-12-10 20:22:31.959 24712-24861/com.example.myapplication E/ReactNativeJS:...
View ArticleHow to add border radius on the App main view?
How can I add a border radius on the main view that surround the AppContainer like Snapchat ?Snapchat has it in all its appI tried to put a 'border-radius: 20' on the view that surround the...
View Articlereact native secureTextEntry not working on android
I am trying to use react-native secureTextEntry to hide my password and confirm password fields during registration.I'm using custom InputBox component for textInput.below is my code,<InputBox...
View ArticleDuplicate class com.google.android.gms.gcm.PendingCallback in modules...
When executing react-native run-android I get the following error:> Task :app:checkDebugDuplicateClasses FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task...
View ArticleAndroid app uploaded as .aab to play store crashes while opening, if I upload...
When I upload the app as aab it crashes with error:Unable to load script. make sure you are running meters serverBut when I upload it as apk it works just fine.
View ArticleWhy Axios on Android doesn't provide response on 400 Error?
I'm using React Native & Axios and they work perfect on iOS but unfortunately on Android, Axios doesn't return error response from the server.Here is my server response as raw data. Checked it with...
View ArticleminSdk compatibility error setting up react-native-notifications@2.1.3 with...
I'm trying to add a push notification system to a react-native project, and I an trying to use react-native-notifications version 2.1.3.My package.json file looks like this:"dependencies": {...
View ArticleHow to make the Alert / Modal / Dialog service appear when the application is...
I have a problem, here I made two applications say, seller and buyer. When the buyer pays with the hit API / Socket IO the Seller application displays a popup. These Pop-Up are like phone calls or...
View ArticleExpo error something went wrong could not load exp://127.0.0.1:19000
I don't know what is wrong with expo it was working fine. Expo is not showing me my IP address so that I can connect expo client app with my PC by scanning QR code. I had tried many solution from...
View ArticleHow to get BSSID and SSID in android on Expo?
I want to get the BSSID and SSID info of an android mobile. I am developing my application on Expo. Currently I am using react-native-network-info module but its not working.
View ArticleImage is 90 degree left rotated after encoding to Base64
I am using GalleryIntent to pick an image from the gallery and after that, I am encoding that image to Base64, but in this process after encoding an image to Base64, I saw that image is rotated to 90...
View ArticleReact Native drag down to open a top to bottom sliding sheet, drawer, modal, etc
A bottom sheet, drawer, etc. (lots of names, I'll be calling it sheet) is used a lot in apps and there are a lot of RN packages for it. I need one top-down, not bottom-up. The video below shows what I...
View ArticleReact Native Image Picker: null is not an object (evaluating...
I installed react-native-image-picker according to the documentation. When I am trying to select the image from the phone (after hitting the button), the emulator is giving me this error- null is not...
View ArticleModule RCTEventEmitter is not a registered callable module
This problem has already been addressed, but in my case it seems to be of a different type.App.js Code:import React, {Component} from 'react'; import { AppRegistry,StyleSheet, Text, View} from...
View ArticleAccess mobile device's traffic react native
Is there anyway i can access a mobile(Android) device's web traffic i.e. the website url's the user is visiting in the browser, and redirect them to our app. Just like what a VPN does, it gets the...
View ArticleImplement drawer from native base in react native app
I need to use drawer from native base into react native app for both android ios et android. Here is the link for native base http://nativebase.io/docs/v2.0.0/components#drawer and below you'll find my...
View Article