INNER CODE UNIT · TypeScript
isBoolean
maplibre/maplibre-react-native · package/src/utils/index.ts:37
export function isBoolean(bool: unknown): bool is boolean {
return typeof bool === "boolean";
}
export type NativeArg =
| string
| number
| boolean
| null
| { [k: string]: NativeArg }
| NativeArg[];
export function runNativeCommand<ReturnType = NativeArg>(
module: string,
name: string,
nativeRef: Component,
args: NativeArg[] = [],
): ReturnType {