Check out example codes for "how to make rb.addforce 2d". It will help you in understanding the concepts better.

Code Example 1

public Rigidbody rb; //make reference in Unity Inspector

public float SpeedX = 0.1f;
public float SpeedY = 0.5f;

rb.AddForce(new Vector2(SpeedX, SpeedY));

Learn ReactJs, React Native from akashmittal.com