Training

How to Create Horizontal Progress Bar in React Native (Android Only)

As you know, the ActivityIndicator component of React Native is round in shape and not horizontal. If you need a horizontal progress bar in your React Native Android app then you should use ProgressBarAndroid component. The ProgressBarAndroid component should be installed from react native community using the following command. or For iOs, run the following …

How to Create Horizontal Progress Bar in React Native (Android Only) Read More »

How to Create a Picker Component with Prompt Message in React Native

If you want to create a picker component with prompt message in React Native then this is the right place to look for. The Picker component will be removed from react native core and hence install Picker from react native community using the following command. or For iOS users, execute the following command too. Creating …

How to Create a Picker Component with Prompt Message in React Native Read More »

How to Disable Picker Component in React Native

Sometimes, you may need to disable the picker component to avoid any further actions related to the same. In order to disable picker component in React Native you just need to use its enabled prop. Set enabled as false to make the picker disabled. Like the example given below.

How to Change Default Letter Spacing of Text Component in React Native

Sometimes, you may need to change the letter spacing of your Text component in react native so that you can show some text fancier. Changing the letter space is so easy and you can do that by tweaking the style of Text component. Just use the letterspacing attribute in the style, as given below: <Text …

How to Change Default Letter Spacing of Text Component in React Native Read More »

How to Make Button Component Disabled in React Native

There are times you might need to disable button component to avoid any further actions on button press. You can easily disable button in react native with disabled property. All you need is to set disabled prop of button true, just as given below: <Button disabled title=”Disabled Button” color=”#841584″ accessibilityLabel=”Learn more about this disabled button” …

How to Make Button Component Disabled in React Native Read More »

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 »