Hi! I'm trying to get the accordion item index when onLongPress is fired. I know the onChange method captures the index, but it only does when onPress fires.
<Accordion
sections={SECTIONS}
activeSections={this.state.activeSections}
renderHeader={this._renderHeader}
renderContent={this._renderContent}
onChange={this._updateSections}
touchableComponent={TouchableHighlight}
touchableProps={{
onLongPress: (index) => {
//I want to get the index here
someMethodToReturn(index)
}
}}/>
Hi! I'm trying to get the accordion item index when onLongPress is fired. I know the onChange method captures the index, but it only does when onPress fires.
Any clues on what I might be missing?