Questions tagged [react-native-component]
67 questions
0
votes
1 answer
Pass parameter to component 2 levels deep React Native
Im trying to pass parameters through to a component two levels deep.
I have 2 screens (MainScreen & UserProfileScreen) with a flat list on both screens, both flat lists use the same component EventCard in its renderItem. EventCard is made up of 3…

Andrew Irwin
- 691
- 12
- 40
0
votes
2 answers
React Native Maps: How to render components below the map?
I just implemented React Native Maps in my application.
My problem is that everything that I render below the maps is rendered on top of it. Let me show you what I mean:
My question is how do I avoid my components being rendered on top of the map?…

J. Hesters
- 13,117
- 31
- 133
- 249
0
votes
1 answer
React-native pass data from child to parent just works in init
I have a screen that shows a few items in list. my item are a component called CardItem which has couple of buttons. I implemented like above but when i run my project, component pass my desired data which is id to parent method in init status, but…

Mort
- 1,411
- 5
- 19
- 51
0
votes
1 answer
React Native a component being only rendered once
I'm using both librarys
import SwipeCards from 'react-native-swipe-cards';
and
import AutoTypingText from 'react-native-auto-typing-text';
In each card I have I use AutoTypingText, The problem is that it uses the same text in all of them, The only…

Doctor Strange
- 189
- 1
- 3
- 12
0
votes
2 answers
Is there any chance to use a component as a global ActivityIndicator on React-Native
Is there any chance to use a component as a global ActivityIndicator which has transparent color and had been created by me on React-Native?
Details:
I use a redux store to update the UI. So I intend to show an ActivityIndicator by updating the…

efkan
- 12,991
- 6
- 73
- 106
-1
votes
3 answers
How to auto hide and show component in react native
In my home screen I want to auto hide my header in 2 seconds, then I will have a button to show the header when pressed. I have tried with HomeStack.Screen but could not achieve it, I have to create my custom header called HeaderHomeComponent.js and…

Benjamin Ikwuagwu
- 377
- 1
- 9
- 28
-1
votes
1 answer
How can I convert stateless function to class component in react native
I am new in react native, I have been looking for how to convert this function to a class component in react native. Please I need help to convert the code below to react component.
import React from 'react';
import { View, Image, ScrollView } from…

Benjamin Ikwuagwu
- 377
- 1
- 9
- 28