To see what version you have on your Mac(Window also can run that code.), run react-native -v
and you should get something like this:
If you want to know what version your project is running, look in /node_modules/react-native/package.json
and look for the version
key: