export default function Test({ navigation, route }) {
var istr = route.params.passed.i;
const users = require(`../pdd/questions/AB/tickets/1.json`);
return (
<ScrollView>
<View style={{ flex: 1, backgroundColor: '#eff3f9', }}>
{users.map(item => (
<View>
<Text>Билет {istr}</Text>
<View style={{ flex: 1 }}>
<Text style={{ fontSize: 20 }} key={item.toString()}>{item.title}</Text>
</View>
<Image style={{ height: 150, width: '100%', textAlign: 'center', borderRadius: 10, }} source={{ uri: item.image }} />
<View style={{ flex: 1 }}>
<Text style={{ fontSize: 20, textAlign: 'center', margin: 10, }}>{item.question}</Text>
{item.answers.map(answer_text => (
<TouchableOpacity style={gStyle.vopros}>
<Text style={{ color: '#fff' }}>
{answer_text.answer_text}
</Text>
</TouchableOpacity>
))}
</View>
</View>
))}
</View>
</ScrollView>
);
}
<input name="q1">
это первый вопрос <input name="q2">
второй и так далее.