By default threshold is 0 because on click and focus we show dropdown even if empty.
However on text change, when text is 0 length it should show dropdown but it is not. I am trying to add this feature however I am having a tricky time accessing view. May you please advise:
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
WritableMap event = Arguments.createMap();
event.putString("text", charSequence.toString());
// ReactContext reactContext = (ReactContext) view.getContext();
reactContext.getJSModule(RCTEventEmitter.class).receiveEvent(
view.getId(),
"topChange",
event);
// if (charSequence.length == 0) {
// ((MyAutoCompleteTextView)view).showDropDown(); // TODO:
// }
}
By default threshold is 0 because on click and focus we show dropdown even if empty.
However on text change, when text is 0 length it should show dropdown but it is not. I am trying to add this feature however I am having a tricky time accessing
view
. May you please advise:I'm trying to do the: