Learn ReactJS & React Native With Me
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Facebook
  • Twitter
  • LinkedIn
  • Email
Learn ReactJS & React Native With Me

Code, Bugs, Pitfalls, Tricks of React Js & React Native

  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact

Browsing Category

React Native Course

101 posts

Get the complete course on React Native.

How to create infinite loading list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To create an infinite loading list in React Native, we need to follow few steps – Create a loader at the footer of the list which can indicate that new…
View Post

How to refresh a list by pulling down in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
Pull to Refresh is a common functionality which is provided in both Android and iOS. The same could be achieved in FlatList in React native using onRefresh and refreshing props.…
View Post

How to show list in reverse direction in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
FlatList provides inverted prop which when set to true, reverses the list. The first item in data array is displayed at the last of the list. The scrollbar is also…
View Post

How to create a horizontal list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To create a horizontal list in React Native, we can use horizontal prop of FlatList and set it to true. This will render the list in horizontal direction with horizontal…
View Post

How to add Title / Header to the list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To add a header to the top of the flatlist in React Native, you can use ListHeaderComponent which can render any custom component or element passed to it. There are…
View Post

How to add footer at the bottom of the list in React native? Code Example

  • Akash Mittal
  • December 9, 2022
To add a footer at the bottom of the flatlist in React Native, we can use ListFooterComponent prop which accepts a component or jsx element. This component renders at the…
View Post

How to create empty list placeholder in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
Empty list placeholder is used to display a message to users when there are no items in the list. If we do not show any message then users gets the…
View Post

How to create a multi column list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To create a multi column FlatList in React Native, you can use numColumns prop. It accepts the count of the number of columns you want to display. There are few…
View Post

How to add dividers between list items in React native? Code Example

  • Akash Mittal
  • December 9, 2022
Adding dividers gives a consistent separation between list items. In React Native, we use ItemSeparatorComponent props in FlatList to render dividers. The value of ItemSeparatorComponent could be a function, component…
View Post

How to select multiple items from list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
In order to select multiple items from list in React Native, you need to create a state variable which can hold an array of ids of selected items. In previous…
View Post

How to select single item from list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
First of all we need to know what “selecting an item” means. It comprises of two properties – Change of visual of selected item from non-selected items. Keeping track of…
View Post

How to create a simple list in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
React Native provides <FlatList> component to create high performance lists which can handle large number of items. In this article we will see the code example of a simple FlatList.…
View Post

How to mute tap sound on button click in React native? Code Example

  • Akash Mittal
  • December 9, 2022
To prevent your Android phone to make any tap sound on button click, you can use touchSoundDisabled props of <Button> component and set it to true. This works for React…
View Post

How to prevent button click in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To prevent a button click in React native, we can use disabled props and set it to true. This will stop all the interactions with the Button component. Hence, onPress…
View Post

How to change color of button in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
Use color props of <Button> component to change the color in React Native. Since it renders the native buttons in Android and iOS apps, so the color property works accordingly.…
View Post

How to create a simple Button in React native? Code Example

  • Akash Mittal
  • December 9, 2022
A <Button> component is used to create a simple button in React native. You can customize few properties like color, title, on press event, disable touch sound etc. But it’s…
View Post

How to change color of circular loader in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
We can use color props in <ActivityIndicator> component to change color of circular loader in React Native. Any hex color code value is supported in it. Code Example In the…
View Post

How to show & hide the circular loader in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
Use animating props of ActivityIndicator component to show or hide the circular loader in React Native. Set it to true to show the loader and false to hide it. You…
View Post

How to change size of circular loader in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
To change the size of circular loader in React native, you need to provide size props in ActivityIndicator component. The valid values are – large & small. Code Example Live…
View Post

How to create a circular loader in React Native? Code Example

  • Akash Mittal
  • December 9, 2022
ActivityIndicator component is used to create a circular loader in React Native. You can set its size, animation, color etc. using different props. Code Examples By default the properties of…
View Post

Posts navigation

Previous 1 … 4 5 6 Next

Learn ReactJS & React Native With Me
Copyright AkashMittal.com | Privacy Policy