CopyPastor

Detecting plagiarism made easy.

Score: 0.8093576431274414; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-08-19
by hong develop

Original Post

Original - Posted on 2015-05-01
by boredgames



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can try Map function ~~~js renderItem={({ item }) => { console.log("item", item); item.map( (data, index) => ( <TouchableOpacity onPress={() => this.props.navigation.navigate("ChatDetails", { Key: data.key, providerName: data.username }) } > <View style={styles.parent}> <Icon name="ios-contact" size={50} color="#4d8dd6" /> <View style={{ flex: 1, justifyContent: "flex-start", alignItems: "flex-start", marginHorizontal: 25 }} > <Text style={{ color: "#000", fontSize: 17 }} > {item.username} </Text> </View> <Icon name="ios-chatboxes" size={25} color="#d6d6d6" /> </View> </TouchableOpacity> )) }} ~~~
How about placing a touchable component around/beside the `TextInput`?
<!-- language: lang-js -->
var INPUTREF = 'MyTextInput';
class TestKb extends Component { constructor(props) { super(props); }
render() { return ( <View style={{ flex: 1, flexDirection: 'column', backgroundColor: 'blue' }}> <View> <TextInput ref={'MyTextInput'} style={{ height: 40, borderWidth: 1, backgroundColor: 'grey' }} ></TextInput> </View> <TouchableWithoutFeedback onPress={() => this.refs[INPUTREF].blur()}> <View style={{ flex: 1, flexDirection: 'column', backgroundColor: 'green' }} /> </TouchableWithoutFeedback> </View> ) } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;