react-native-android

React native expection java.lang.UnsatisfiedLinkError: dlopen failed: “/data/data/{package}/lib-main/libgnustl_shared.so” is 32-bit instead of 64-bit

时光毁灭记忆、已成空白 提交于 2019-11-27 06:41:05
问题 I am trying to integrate React Native with my existing Android App. I am getting the following exception, when initilizing React Native Screen: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.snapdeal.main/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit The App is only crashing on 64-bit devices. As per my learning so far, I've found this issue reported on React Native Repo, but the solution suggested in this thread is not helpful as I am not using any external SO

Network Response Time Out Error (create-react-native-app) (expo)

▼魔方 西西 提交于 2019-11-27 06:40:57
I am trying to run create-react-native-app on expo app in android. Firstly ,I created the project by writing command create-react-native-app test then I executed npm start then scanned the qr code from expo app. But after scanning QR code , I am getting following error: Uncaught Error: Java.net,sockettimeoutException: failed to connect to after 10000ms Github Issue: https://github.com/react-community/create-react-native-app/issues/144#issuecomment-296631692 This is due to not open port from your machine. In Ubuntu Run In terminal sudo ufw status verbose To view open port if you cannot found

React Native Version Mismatch

随声附和 提交于 2019-11-27 06:19:45
Getting the following message when i init a new project and then launch the x-code emulator. "React-Native Version Mismatch" Javascript Version 0.50.1 Native version: 0.50.0 Make sure you have rebuilt the native code... Does anyone know what is going on here and can help me? Thanks! This is what I've done with it: Close all terminals and run build again. You may forget to close nodejs terminal from another project, and they happen to have installed different react version. So the code fetches from nodejs server conflicts with the native one. In case you created your react-native app using

KeyboardAvoidingView not Working Properly

自古美人都是妖i 提交于 2019-11-27 05:30:18
问题 KeyboardAvoidingView not Working Properly I am trying to use the KeyboardAvoidingView with behavior="padding" . For some reason, when I'm trying to enter any text in TextInput , there's a space below the TextInput. Attached is a picture of what is happening as well as the code. Any chance anyone has any idea whats happening here? render() { return ( <KeyboardAvoidingView style={{ flex: 1}} behavior="padding"> < View style={{ flex: 1, backgroundColor: "#FFFFFF", }} > <ScrollView

What is react-native link?

橙三吉。 提交于 2019-11-27 04:05:17
问题 What is the purpose of the react-native link command? 回答1: Note: from React-Native 0.60.0 linking packages using react-native link has become redundant. Autolink has been added to the React-Native CLI which means that iOS will now use cocoapods and Android will use gradle. You can read more about Autolinking here. What is react-native link ? react-native link is an automatic way for installing native dependencies. It is an alternative to manually linking the dependency in your project. It

Issues using AndroidX and React Native

旧时模样 提交于 2019-11-27 03:10:18
问题 I've been trying to integrate AndroidX into my hybrid React Native project, and I've run into the issue that Jetifier doesn't run on "local" projects. This results in all of my React Native libraries still using the old support libraries. I've put the appropriate lines into my gradle.properties file: android.useAndroidX=true android.enableJetifier=true This works for any remote libraries, but React Native places all of it's libraries as local modules on disk. I've tried a lot of things, but

How to save pdf to android file system and then view PDF - react-native

狂风中的少年 提交于 2019-11-27 01:25:22
问题 I am using the react-native-fs and I am trying to save a base64 of a pdf file to my android emulators file system. I receive base64 encoded pdf from the server. I then decode the base64 string with the line: var pdfBase64 = 'data:application/pdf;base64,'+base64Str; saveFile() function saveFile(filename, pdfBase64){ // create a path you want to write to var path = RNFS.DocumentDirectoryPath + '/' + filename; // write the file RNFS.writeFile(path, base64Image, 'base64').then((success) => {

64 bit version issue in react-native android app by google play store

江枫思渺然 提交于 2019-11-27 00:43:09
问题 According to https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html: In August 2019, Play store will require that new apps and app updates with native libraries provide 64-bit versions in addition to their 32-bit versions. I have a React Native application (which includes native code). My question is how can I know whether a third party library I'm using or even my own code is not supporting 64-bit? And how can I fix it? Update I added x86_64 to my build

How to add custom font in react native android

不打扰是莪最后的温柔 提交于 2019-11-26 20:58:16
问题 I am learning react-native , trying to create some demo apps just for learning. I want to set fontFamily to roboto thin of my toolbar title. I have added roboto thin ttf in assets/fonts folder of my android project, however it seems that it is creating issues while running app. I am getting this issue while running react-native start ERROR EPERM: operation not permitted, lstat 'E:\Myntra\android\app\build\gener ated\source\r\debug\android\support\v7\appcompat' {"errno":-4048,"code":"EPERM",

Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release

安稳与你 提交于 2019-11-26 18:00:55
问题 react-native run-android terminates by leaving a message in message in android simulator . The message is as follows Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release. Am totally confused what's am doing wrong . Edit: Adding an error screenshot 回答1: You haven't started the bundler yet. Run npm start or react-native start in the root directly of your project before react-native run-android 回答2: