-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed deprecated function and component #219
base: master
Are you sure you want to change the base?
Conversation
removed deprecated ListView and componentWillReceiveProps with FlatList and componentDidUpdate respectively
@@ -14,6 +14,8 @@ import { | |||
View, | |||
Text, | |||
ListView, |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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
Is someone planning to merge this PR? |
@@ -88,9 +90,9 @@ export default class ModalDropdown extends Component { | |||
}; | |||
} | |||
|
|||
componentWillReceiveProps(nextProps) { | |||
componentDidUpate(prevProps, prevState){ |
There was a problem hiding this comment.
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
.
removed deprecated ListView and componentWillReceiveProps with FlatList and componentDidUpdate respectively