[common] add isIOS & isAndroid flags

This commit is contained in:
Salakar
2019-02-20 01:51:09 +00:00
parent 8ed4275981
commit bef20f76eb

View File

@@ -14,6 +14,7 @@
* limitations under the License.
*
*/
import { Platform } from 'react-native';
export * from './validate';
@@ -30,3 +31,7 @@ export function promiseDefer() {
return deferred;
}
export const isIOS = Platform.OS === 'ios';
export const isAndroid = Platform.OS === 'android';