This is a simple NativeScript test app. You can take a picture and show the taken picture afterwords in the view.
It works on iOS and Android. If you run it in the emulator, you can use the hardware camera from your laptop on android. In iOS you can choose a picture from the build in photo library.
- Make sure you install NativeScript according to there docs and have android and iOS up and running.
tns platform add android
tns platform add ios
tns prepare android
tns prepare ios
tns run ios --emulator
tns run android --emulator
Unfortunately you need to run every command separately for every platform. Make your live easier and run in separate shells instances ;)