Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,19 @@ public void setCaretHidden(ReactEditText view, boolean caretHidden) {
public void setSelectTextOnFocus(ReactEditText view, boolean selectTextOnFocus) {
view.setSelectAllOnFocus(selectTextOnFocus);
}

@ReactProp(name = "enablesReturnKeyAutomatically", defaultBoolean = false)
public void setEnablesReturnKeyAutomatically(ReactEditText view, boolean enablesReturnKeyAutomatically) {
// if (enablesReturnKeyAutomatically && view.getText() !== "") {
// view.setReturnKeyType("none");
// } else {
// // TODO: Get the original value of "done"
// view.setReturnKeyType("done");
// }

// TODO: adjust to bool and currently set text
view.setImeOptions(EditorInfo.IME_ACTION_NONE);
}

@ReactProp(name = ViewProps.COLOR, customType = "Color")
public void setColor(ReactEditText view, @Nullable Integer color) {
Expand Down