The command I was using is deprecated. Use this command to create a react native app without expo "npx @react-native-community/cli@latest init Your-Project_Name".