88 */
99
1010import React from "react" ;
11- import { View , Text , Image } from "react-native" ;
11+ import { View , Text , Image , TextInput , TouchableOpacity } from "react-native" ;
1212import { LargeList } from "../react-native-largelist" ;
13+ // import {LargeList} from "react-native-largelist";
1314import { contacts as orgContracts } from "./DataSource" ;
1415import { iconObject } from "./icons" ;
1516
@@ -34,6 +35,7 @@ class LargeListSample3 extends React.Component {
3435 renderCell = { this . renderItem . bind ( this ) }
3536 heightForSection = { ( ) => 40 }
3637 heightForCell = { ( ) => 60 }
38+ keyboardShouldPersistTaps = { 'handled' }
3739 renderHeader = { this . renderHeader . bind ( this ) }
3840 renderFooter = { this . renderFooter . bind ( this ) }
3941 onRefresh = { ( ) => {
@@ -92,19 +94,16 @@ class LargeListSample3 extends React.Component {
9294 style = { { marginLeft : 16 , width : 40 , height : 40 } }
9395 source = { this . contacts [ section ] . info [ row ] . icon }
9496 />
97+ < TouchableOpacity onPress = { ( ) => { } } >
9598 < Text style = { { fontSize : 16 , marginLeft : 10 } } >
9699 { this . contacts [ section ] . info [ row ] . name }
97100 </ Text >
101+ </ TouchableOpacity >
98102 </ View >
99- < Text style = { { fontSize : 16 , marginRight : 16 } } >
100- { this . contacts [ section ] . info [ row ] . phone }
101- </ Text >
103+ < TextInput style = { { fontSize : 16 , marginRight : 16 , width : 100 } } defaultValue = { this . contacts [ section ] . info [ row ] . phone } >
104+
105+ </ TextInput >
102106 </ View >
103- { /*{(row < this.contacts[section].info.length - 1 ||*/ }
104- { /*section === this.contacts.length - 1) &&*/ }
105- { /*<View*/ }
106- { /*style={{ backgroundColor: "#CCC", height: 1, marginLeft: 16 }}*/ }
107- { /*/>}*/ }
108107 </ View >
109108 ) ;
110109 }
0 commit comments