FlatList Dynamic Height Sizing
问题 I have an AutoComplete Box which gives me a list of autocomplete items. I display the items in FlatList, I also have a border around the FlatList. My code is given below: - render(){ return ( <View> <TextInput clearButtonMode="while-editing" onChangeText={this.onChangeText} value={this.state.searchText} onSubmitEditing={this.onTextSubmitted} placeholder="Find..." /> {this.state.data.length > 0 && <FlatList style={styles.list} keyboardShouldPersistTaps="handled" data={this.state.data}