Check out example codes for "how to pass a float between activities in android studio". It will help you in understanding the concepts better.

Code Example 1

Intent A2 = getIntent();
        float Value = A2.getFloatExtra("rMainValue", 0);
 
        EditText mainResistorValue = (EditText)findViewById(R.id.upperToleranceValue);
 
        mainResistorValue.setText(Float.toString(Value));

Learn ReactJs, React Native from akashmittal.com