You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 309B

12345678910111213
  1. import { NativeModules } from 'react-native';
  2. /**
  3. * Determines if the ExternalAPI native module is available.
  4. *
  5. * @returns {boolean} If yes {@code true} otherwise {@code false}.
  6. */
  7. export function isExternalAPIAvailable() {
  8. const { ExternalAPI } = NativeModules;
  9. return ExternalAPI !== null;
  10. }