MM-11006 Fix android seach field population for in and from keywords (#1806)

This commit is contained in:
Sudheer 2018-06-23 02:48:53 +05:30 committed by Elias Nahum
parent 8aa4c1467d
commit d07d85ef9d

View file

@ -71,6 +71,16 @@ export default class SearchBarAndroid extends PureComponent {
};
}
static getDerivedStateFromProps(nextProps, prevState) {
if (nextProps.value !== prevState.value) {
return {
value: nextProps.value,
};
}
return null;
}
cancel = () => {
this.onCancelButtonPress();
};