yoonzm / react-native-alphabet-flat-list

使用FlatList制作的react-native字母选择列表

Home Page:https://github.com/yoonzm/react-native-alphabet-flat-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get selected Item from this list

Balasnest opened this issue · comments

How will I know which one is selected?
There is no way to pass function to get the selected cell.

This library is tightly coupled

you can get state.selectAlphabet of a reference to a component.

<AlphabetFlatList ref={ref => this.list = ref}/>

console.log(this.list.state.selectAlphabet);