Questions tagged [react-native-flatlist]

0 votes
1 replies
How to pass a list with objects from Server to FlatList?
I'm trying to create a FlatList that contains an array with objects that has an array from a server and I can't get it to work. my error message...
0 votes
3 replies
React Native: FlatList index says is undefined
I'm trying to retrieve the index of the clicked element on a FlatList in react native. As the documentation says, I'm passing an index to the ren...
0 votes
1 replies
React Native How to pass a list with objects that contains a list to work with FlatList?
I'm trying to create a FlatList that contains an array with objects that has an array and I can't get it to work. my error message: “Invaria...
asked 4 months ago
0 votes
0 replies
React-Native : Weird Style Issues With Horizontal Scrolling
When creating a horizontal FlatList of Poster Images the render item width gets messed up as well as huge spaces added between each item. This is...
1 votes
0 replies
How refresh a Flatlist with Input's text using Json API
I'm trying to refresh the Flatlist when a user type something in the search bar, but I don't know exactly how to do it. The goal here is to disp...
0 votes
2 replies
FlatList ref issue
I am not getting ref of the flatlist always getting Warning: Function components cannot be given refs. Attempts to access this ref will fa...
asked 4 months ago
1 votes
2 replies
Inflate data to FlatList from a variable React-Native
I am storing a JSON file in the local storage using react-native-fs and fetching the data from the JSON file and storing it in a variable. I wan...
1 votes
3 replies
How to pass multiple objects or values in FlatList extraData
I have a situation where I need to pass both State and Props in the FlatList extraData. I tried something like this but didn't work. <FlatL...
asked 4 months ago
1 votes
0 replies
React Native Floating action button Touchable not working
I have a FlatList and FAB on screen. FAB is positioned absolute. whenever I try to click on FAB a FlatList item behind fab gets clicked. When I...
0 votes
1 replies
React Native - Flatlist with independent column
I would like to make independent column flatlist , how can i do like aimed status ? Current status: https://imgur.com/a/gKAt3XK Aimed status:...
asked 4 months ago
0 votes
1 replies
How can I set data in a state in FlatList?
I want to save product ID (item.id) in a state like productId. I need to product Id for add product to cart. When I click on TouchableOpacity...
asked 4 months ago
0 votes
1 replies
Why is num not showing the correct value?
I am learning React-Native and building a game as a first app. I am building a flatlist of buttons based on a JSON fetch of results. The title of...
0 votes
0 replies
React Native FlatList Refresh Issue only in beta release for Android
My props are updating in the redux store and then I am updating FlatList by using extra data with channels that are produced if the user is withi...
0 votes
0 replies
To save the value of flatlist in asyncstorage
i'm new in react native. i'm trying to save the item of flatlist. The flatlist item is Coming from autocomplete. i have diplay the autocomplete i...
2 votes
0 replies
Is it possible to drag item outside the scope of horizontal FlatList?
I am working on the FotoBook application using React Native library. After i let the user to choose images from device library i put them into Fl...
0 votes
0 replies
How to animate RN flatlist items as and when they enter/exit the screen/main view?
I need to animate flatlist items when I scroll up or down to them. Both animations are supposed to be different (flip right for new item entering...
asked 4 months ago
0 votes
2 replies
How to pass props in the component to FlatList renderItem
I have a Function as a prop in my component and I have to pass this Function Prop to another Component in the renderItem in FlastList. How to do...
asked 4 months ago
0 votes
0 replies
How to Reorder Items in Flatlist/SectionList
I have few questions: In React Native 1) Do we have default reordering of items in Flatlist/SectionList, like we have for UITableview in iOS "...
0 votes
2 replies
How to show for text More/Less in React-Naitve (Javascript)
I am developing react-native application. In that, We are showing some description on Text, It may be number of lines. So, If data has more than...
0 votes
1 replies
React Native : Flatlist and Array
it is a common question surely, but I can not render a FlatList with array source. I follow this example :https://medium.com/javascript-in-plain...
asked 5 months ago
2 votes
0 replies
FlatList not updating with React Hooks and Realm
I am writing a custom hook to use it with realm-js. export default function useRealmResultsHook<T>(query, args): Array<T> { const...
1 votes
1 replies
Unable to loop and render FlatList inside .map function react-native
I am trying to render a FlatList inside a component. The Component itself is inside a ScrollView. I am using map function to loop through the da...
2 votes
2 replies
How can I refresh a particular row on a flatlist in react-native?
I am trying to refresh a particular cell/row in a flatlist. How can i just refresh a single cell when data is loaded. And after refreshing displa...
2 votes
2 replies
How can I refresh a particular row on a flatlist in react-native?
I am trying to refresh a particular cell/row in a flatlist. How can i just refresh a single cell when data is loaded. And after refreshing displa...
0 votes
1 replies
Flatlist not rerendering on state change
I have a FlatList and it is not rerendering when a state change happens. How do I get a FlatList to rerender? _renderItem = ({item}) => {...