Skip to content

Conversation

roshansathya
Copy link

removed deprecated ListView and componentWillReceiveProps with FlatList and componentDidUpdate respectively

removed deprecated ListView and componentWillReceiveProps with FlatList and componentDidUpdate respectively
amirulabu pushed a commit to vase/react-native-modal-dropdown that referenced this pull request Jul 22, 2019
Dimensions,
View,
Text,
ListView,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, using your fork since this repo seems like an orphan.

ListView import here should just be removed.

keyExtractor={(_, index) => index.toString()}
renderItem = {({item, index}) => this._renderRow(item, index)}
data={this.props.options}
renderSeparator={renderSeparator || this._renderSeparator}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In FlatList, renderSeparator was changed to ItemSeparatorComponent

@Egi-B
Copy link

Egi-B commented Dec 14, 2019

Is someone planning to merge this PR?

}

componentWillReceiveProps(nextProps) {
componentDidUpate(prevProps, prevState){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo here, should be componentDidUpdate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants