Tag Archives: react native

Dismiss keyboard in multiline TextInput in React native

By doing below code , you keyboard show return key you wanted for example “done”, “go” and also dismiss the keyboard when you press return key in my case done key while using multi line seamlessly. import {Textinput, ScrollView, Keyboard} from ‘react-native’; // …code <TextInput keyboardType=”default” returnKeyType=”done” multiline={true} blurOnSubmit={true} onSubmitEditing={()=>{Keyboard.dismiss()}} />

Fix package com.android.annotations does not exist

Here is how to automatically fix all android to androidx issues for React Native. 1. Please check that you have NPX installed and if not, install it with: npm install -g npx 2. Add the following two flags to true in your gradle.properties file at ProjectFolder/android/gradle.properties android.useAndroidX=true android.enableJetifier=true 3. Execute these lines: npm install –save-dev […]

React Native Publishing an Android App

Add/Create Keystore This command will create a keystore with the given name if the file doesn’t exist or append a key to a current keystore. keytool -genkey -v -keystore mykeystore.keystore -alias mykeyalias -keyalg RSA -keysize 2048 -validity 10000 After you have generated the mykeystore.keystore file copy it to android/app. Setting up gradle variables Append the snippet […]