Mana bir misol, ushbu kod HelloWorldApp-ni yangi komponent sifatida belgilaydi: import React from'react'; import {Text, View, StyleSheet} from'react-native'; const styles = StyleSheet.create({ center: { alignItems: 'center', }, }); const Greeting = props => { return (<View style={styles.center}> <Text>Salom {props.name}!Text</Text> </View> ); }; const LotsOfGreetings = () => { return (<View style={[styles.center, {top: 50}]}> <Greeting name="Rexxar" /> <Greeting name="Jaina" /> <Greeting name="Valeera" />); } default ); export LotsOfGreetings;
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence