Check out example codes for "sending data photon c#". It will help you in understanding the concepts better.

Code Example 1

void OnPhotonSerializeView(PhotonStream stream,PhotonMessageInfo info)
{
	if (stream.isWriting)
	{
		//We own this player: send the others our data
		stream.SendNext((int)controllerScript._characterState);
		stream.SendNext(transform.position);
		stream.SendNext(transform.rotation);
	}
	else
	{
		//Network player, receive data
		controllerScript._characterState = (CharacterState)(int)stream.ReceiveNext();
		correctPlayerPos = (Vector3)stream.ReceiveNext();
		correctPlayerRot = (Quaternion)stream.ReceiveNext();
	}
}

Learn ReactJs, React Native from akashmittal.com