React Native · APIs and utilities
License
Result of the last license check; undefined if no check has run yet or the environment is development.
2 exports
Import
getLicenseStatus
functionResult of the last license check; undefined if no check has run yet or the environment is development.
isLicenseFree
functionIs this a development environment (no license needed)? Yes if Metro's __DEV__ is on and React is its development build (the two must agree, so setting __DEV__ by hand in a release build is not enough). Outside Metro (__DEV__ undefined) only a test runner (NODE_ENV === "test") counts as development; any other bundler needs a license.