html

How to add div to React Native?

I’ve just started my react native app and having some troubles. I have some experience with react but that doesnt seem to be helping much. The div surrounding the Text is meant to be my app header so Im trying to style it but for some reas…

How to map array into Avatar Element

how to do the map that foreach item in the arry will be avatar element
example arry:
let arr = [{id:1},{id:2},{id:3},{id:4}]

the avatar element that i want that foreach item in the arry will be all this:
(i have tried something like that …