dispatch:platform

v2.0.0Published 9 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

platform

Platform detection and normalization.

Getting Started

App.accessRule('maps://*', {
  launchExternal: true
});
1if (Platform.isAndroid) {
2  // Android specific logic
3}
4
5if (Platform.isIos) {
6  // iOS specific logic
7}
8
9Platform.phoneCall('+12223334444');
10
11Platform.textMessage('+12223334444');
12
13Platform.sendEmail('support@dispatch.me', 'Loving your packages');
14
15Platform.openMap('170 Milk Street, Boston MA');