You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Fixed note order in RN
This commit is contained in:
@ -23,6 +23,12 @@ class Checkbox extends Component {
|
||||
this.state = { checked: this.props.checked };
|
||||
}
|
||||
|
||||
componentWillReceiveProps(newProps) {
|
||||
if ('checked' in newProps) {
|
||||
this.setState({ checked: newProps.checked });
|
||||
}
|
||||
}
|
||||
|
||||
onPress() {
|
||||
let newChecked = !this.state.checked;
|
||||
this.setState({ checked: newChecked });
|
||||
|
Reference in New Issue
Block a user