Training

How to Show Base64 Data as Image in React Native

Showing Base64 encoded data as image is very easy in React Native. It is pretty similar to what you would do with the basic HTML. All you need is to pass the Base64 data to the source prop of the image component. const encodedBase64 = ‘R0lGODlhAQABAIAAAAAA…7’; <Image source={{uri: `data:image/gif;base64,${encodedBase64}`}} />  

How to Ask Running Permissions for Android in React Native

Post Android Lollipop OS, you need to ask for running permissions to access camera, location, external memory etc. This React Native tutorial will help you how to ask running permissions in React Native. Here, you should use PermissionsAndroid API from React Native. There are two types of permissions- normal and dangerous. Normal permissions are granted …

How to Ask Running Permissions for Android in React Native Read More »

How to Make TextInput not Editable in React Native

Sometimes, you might need TextInput which can’t be edited by the user. In that case, TextInput should be made not editable with editable prop. Let’s check how to make TextInput noneditable in react native. Go through the code below where I made TextInput not editable. Class based component Function based component As you noticed, here …

How to Make TextInput not Editable in React Native Read More »