xxxxxxxxxx
const [a, setA] = useState(["a1","a2","a3","a4","a5"]);
const [b, setB] = useState(["b1","b2","b3","b4","b5"]);
return(
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
{a.map((a, i)=>
<View><Text>{a}</Text>
<Text>{b[i]? b[i]:""}</Text>
</View>
)}
/*the purpose of the ? : in b[i] is in case b has less elements than a, in that case nothing will be displayed*/