Command palette

@yasinsensoy/native

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

import { isLicenseFree, getLicenseStatus } from "@yasinsensoy/native";

Result of the last license check; undefined if no check has run yet or the environment is development.

getLicenseStatus(): LicenseStatus | undefined

Is 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.

isLicenseFree(): boolean