Check out example codes for "get player pawn". It will help you in understanding the concepts better.

Code Example 1

//file to include
#include "Kismet/GameplayStatics.h"

static APawn * GetPlayerPawn(const UObject * WorldContextObject, int32 PlayerIndex);

APawn* PlayerPawn = UGameplayStatics::GetPlayerPawn(GetWorld(), 0);
//								this is a reference to world  | This is the index of player which you want. In this case  have written 0 that means the first player
//For more information vist

Learn ReactJs, React Native from