Check out example codes for "action on long press of edit edittext". It will help you in understanding the concepts better.

Code Example 1

Button button = (Button)findViewById(R.id.b1);

button.setOnLongClickListener(

                new Button.OnLongClickListener() {


            public boolean onLongClick (View V){
                EditText e1 = (EditText) findViewById(R.id.editText);
                android.widget.TextView tv = (android.widget.TextView) findViewById(R.id.t1);
                tv.setText("long data "+e1.getText());
return true;

            }

        }


        );

Learn ReactJs, React Native from akashmittal.com