PSST! Want to get faster responses to bug reports and important issues? Help us keep the issue tracker organized by:
Please move all other content to the forums.
@sunpasup it is not clear what you are trying to achieve because there is no information provided for the problem you are facing.
If you need to create different logic for iOs and Android you can achieve that in several ways including wrapping the code in platform-specific checks.
import { isAndroid, isIOS } from "platform";
if (isAndroid) {
// Android code here
} else if (isIOS) {
// iOS code here
}
for me the import goes something like:
import {isAndroid, isIOS} from 'tns-core-modules/ui/page';
It appears 'platform' is deprecated.
import {isAndroid, isIOS} from 'tns-core-modules/ui/page'
works for me too
Most helpful comment
@sunpasup it is not clear what you are trying to achieve because there is no information provided for the problem you are facing.
If you need to create different logic for iOs and Android you can achieve that in several ways including wrapping the code in platform-specific checks.