Check out example codes for "react native typescript template". It will help you in understanding the concepts better.

Code Example 1

npx react-native init MyApp --template react-native-template-typescript

Code Example 2

npx react-native init MyApp --template react-native-template-typescript

Learn ReactJs, React Native from akashmittal.com