react-native-android

componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native

一世执手 提交于 2019-11-28 09:02:02
I use the react native latest version of 0.54.0 and Whenever run the apps on iOS there is found warning about deprecate the lifecycle methods. and also please update the components. Warning : componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount. Please update the following components: Container, Text, TouchableOpacity, Transitioner, View I Have also change according to the waring add prefix UNSAFE_ each of the method. UNSAFE_componentDidMount() { } UNSAFE

Android Studio building errors using react native app

北慕城南 提交于 2019-11-28 04:23:10
问题 I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building like: Using incompatible plugins for the annotation processing Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html The specified Android SDK Build

com.android.builder.testing.api.DeviceException: No connected devices

家住魔仙堡 提交于 2019-11-28 00:35:30
问题 Scanning folders for symlinks in /home/sino/Desktop/we-clone/node_modules (4ms) Starting JS server... Building and installing the app on the device (cd android && ./gradlew installDebug)... Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app

How to reduce the react-native app size on Android

扶醉桌前 提交于 2019-11-27 20:17:15
I am developing a small dictionary app by using react native with expo. As I am compiling to Apk file. The size goes up to 30mb and after having installed on a device, it goes to 80mb. Is this normal? Are there any ways to reduce the size of the app? Thank you guys. expo is for testing the app you should migrate to react-native for production make a new react app " react-native init " Copy the source files over from Expo project Install all dependencies of the Expo project except Expo specific libraries. Make necessary adjustments to app.json file Download the signing key of your Android app

How to build .ipa application for react-native-ios?

☆樱花仙子☆ 提交于 2019-11-27 18:50:20
I would try " How to generate .ipa file for react-native? " But I'cant get .ipa file. Any one cloud you explain how to get .ipa file . Saravana Kumar How to build .ipa application for react-native-ios : Get ".app" file : Command : react-native run-ios --configuration=release ".app" file path : Build/Products/Release/"<Your_Filename>.app" Convert .app to .ipa : a. Create folder Payload. b. paste .app file into Payload folder. c. compress the Payload folder. d. change the name you want and put extension as .ipa . You can run these commands in the ios directory. xcodebuild clean archive -scheme

Getting Android RecyclerView to update view inside React Native component

杀马特。学长 韩版系。学妹 提交于 2019-11-27 17:52:55
问题 I am making a mobile application using React Native and included list components didn't have high enough performance for it so I started using Android's RecyclerView as the list component. There is a problem though with it. The RecyclerView doesn't update its contents views until I scroll or change RecyclerView's size. What could cause this problem and how I can fix it? I have tried notifyDatasetChanged, notifyItemChanged, forceLayout, invalidate, postInvalidate and many different variations

What is react-native link?

笑着哭i 提交于 2019-11-27 14:41:38
What is the purpose of the react-native link command? 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 works for both Android and iOS. When linking a project manually the majority of the steps are the same and so

React native run-android do not updating modified code

孤街醉人 提交于 2019-11-27 10:48:11
问题 I am using React native 0.52.0 and react-native-cli 2.0.1 on my Windows PC for android development. Despite all the changes i have made. When I run react-native run-android , it builds successfully but when I run it, I get the default react native screen. The result when I run react-native run-android - The app I get- index.js import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('albums', () => App); app.js import React from 'react' import

Reload a React Native app on an Android device manually via command line

二次信任 提交于 2019-11-27 10:40:28
问题 I'd like to manually force a Reload of my React Native app on demand without physically shaking the device. (I'm getting carpal tunnel.) I know that Live Reload / Hot Reload are available. I'm looking for a on-demand command line solution. 回答1: Using the cmd line you can send a command to the Android device. adb shell input text "RR" This command tells the Android device to type the character "R" twice which is the React Native command to Reload on Android. The adb shell command has many

Checked - Unchecked doesn't working in ListView - React Native

梦想的初衷 提交于 2019-11-27 07:31:10
问题 friend I Will integrated checked - unchecked in listView. So that When user click on checked then store the data in Array and unchecked then i will remove the data. Its working fine, But the UI Will not updated after checked - unchecked. <List containerStyle={{marginTop : 0 , borderBottomWidth : 0 , borderBottomColor : 'black', borderTopWidth : 0}}> <FlatList data={this.state.list} renderItem={({ item }) => ( <ListItem containerStyle={{height: 80, backgroundColor : 'transparent',