Created
November 23, 2018 14:07
-
-
Save sandoche/9b29774640072deede3cca901293ea1b to your computer and use it in GitHub Desktop.
Lessons Learned on Writing Apps with NativeScript VueJS - Example 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { isAndroid, isIOS, device } from 'tns-core-modules/platform' | |
if (isAndroid && device.sdkVersion >= "21") { | |
// do something | |
} else if (isIOS) { | |
// do something else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment