I think you first need to install the external lib you are trying to use if it is not part of Mendix (I think its not packaged with starter native app)
Open command prompt, go to project-dir/javascriptsource/nativemobile/
Run npm i react-native-view-shot here
Now stop and re-run the app in studio pro
The module should be available now