react-native-android

Getting 3 errors in React Native project 1: React Native CLI error 2: Android development environment error 3:emulator error

丶灬走出姿态 提交于 2021-01-29 00:00:25
问题 After cloning a React Native project and setting the all the requirements in android studio I am getting 3 errors in the terminal after running the command "react-native run-android". Can anyone please help me! How to fix these errors. 1) error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: - react-native-camera (to unlink run: "react-native unlink react-native-camera") 2) error Failed to install the app. Make sure you have the

React Native TextInput setState() hides keyboard

我怕爱的太早我们不能终老 提交于 2021-01-28 00:26:19
问题 Please check on the snack link, https://snack.expo.io/@banid/textinput The TextInput on the filter view(shows when the button is pressed) hides keyboard when ever I call setState(). I call setState to update the value of TextInput. Bcause of this I can't type continuously on the TextInput. Is this a bug or am I doing something wrong?? Thank you 回答1: The problem is that you are creating a brand new (anonymous) function that renders the header of the FlatList on every update <FlatList ....

How to change style for an particular column in React Native?

↘锁芯ラ 提交于 2021-01-27 16:11:43
问题 So, i have been making a matrix kind of table design to place available seats in bus ! So, am looping though 2d and 3d arrays to make this view ! Here is the pic of the output ! In this pic as you see - the first row contains a big vertical rectangle seat first and then three square seats ! But, as the check the second row - it has jumped with a huge gap ? As this is happening because of the first vertical rectangle, as the rectangle extends a bit - the second rows starts after that, But the

'gradlew.bat' is not recognized as an internal or external command

北战南征 提交于 2021-01-27 04:19:40
问题 So i am trying to start a react native android project in windows 10 based on the Getting Start React Native. I am stuck at the last step->react-native run-android ps: Im using genymotion for my android emulator marshmallow 6.0 回答1: Got it, Add the file location to environment variable PATH C:\Users\user\AppData\Local\Android\Sdk\tools\templates\gradle\wrapper 回答2: Another version of the @Kai Jie findings, that works for me. Compiling previous answers I did the following to get Android SDK

React native android moveTaskToBack?

邮差的信 提交于 2021-01-27 04:10:40
问题 Is there any library which has ability like moveTaskToBack in React Native? Previously I use https://github.com/jaysoo/react-native-activity-android and it has moveTaskToBack . But unfortunately this repo is not active anymore, and since React Native 0.29, it has some internal change which make that library didn't work. 回答1: I'm not sure it's what you need, but if you put this in your MainActivity.java class: @Override public void invokeDefaultOnBackPressed() { // do not call super

java.lang.ClassNotFoundException: Didn't find class “com.my_app_name.androidx”

荒凉一梦 提交于 2021-01-20 09:58:41
问题 After attempting to upgrade my Android app from an old version of React Native (0.55.4) to the latest version (0.60.4). Now I am unable to launch my app. It crashes every time I try to launch it. The error message seems to indicate that it's trying to reference androidx within my app's namespace: 08-09 16:52:06.163 25438 25438 E LoadedApk: Unable to instantiate appComponentFactory 08-09 16:52:06.163 25438 25438 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "com.my_app_name

java.lang.ClassNotFoundException: Didn't find class “com.my_app_name.androidx”

感情迁移 提交于 2021-01-20 09:55:30
问题 After attempting to upgrade my Android app from an old version of React Native (0.55.4) to the latest version (0.60.4). Now I am unable to launch my app. It crashes every time I try to launch it. The error message seems to indicate that it's trying to reference androidx within my app's namespace: 08-09 16:52:06.163 25438 25438 E LoadedApk: Unable to instantiate appComponentFactory 08-09 16:52:06.163 25438 25438 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "com.my_app_name

How do I go back in webview? I am using the react-navigation package in react-native

a 夏天 提交于 2021-01-18 10:13:52
问题 I installed the react-navigation package in react-native I have implemented tab navigation and one of them is implemented in webview format. My problem is that if I press the back physical button on Android, I go from the app itself to the previous tab, not back from the webview. I've already applied the back button for the webview on the internet, but I have not done that. I tried to display the onNavigationStateChange log when debugging, but it was not updated when url was moved after it

How do I go back in webview? I am using the react-navigation package in react-native

寵の児 提交于 2021-01-18 10:10:05
问题 I installed the react-navigation package in react-native I have implemented tab navigation and one of them is implemented in webview format. My problem is that if I press the back physical button on Android, I go from the app itself to the previous tab, not back from the webview. I've already applied the back button for the webview on the internet, but I have not done that. I tried to display the onNavigationStateChange log when debugging, but it was not updated when url was moved after it

React native side drawer not closing

ε祈祈猫儿з 提交于 2021-01-07 06:36:16
问题 I have a react native side drawer which is not responding at all, also when am consoling the state it is not coming. and initially the drawer is open and not closing or responding upon initial render: My exact code is written below: import React, { useEffect, useState } from "react"; import { View, ScrollView, ActivityIndicator, Text, TouchableOpacity, StyleSheet, Image, } from "react-native"; import AsyncStorage from "@react-native-community/async-storage"; import MenuDrawer from "react