leecade / leecade/react-native-swiper
How can I add <View> components dynamically?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
When I try to do something like this:
{
titles.textos.map(function (texto) {
return <ContainerText id={texto.id} title={texto.texto} headerText={texto.header} imageSource={texto.imageSource}/>
})
}
inside a element, i get the error: Text strings must be rendered within a <Text> component. Can I add components dynamically? <ContainerText/> Only return a <View><Text></Text></View> (Sorry my bad English)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report only identifies dynamically mapped ContainerText components rendered inside Swiper and the resulting error; it names no repository file or test. Start by reproducing that example and tracing the Swiper rendering entry point. The issue does not define a concrete change or a clear completion condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100