Skip to content

authorizationAdvice — @gj-kit/expo-workouts

A public function from @gj-kit/expo-workouts/core. The signature below is taken directly from the 0.1.1 release declaration.

import { authorizationAdvice } from '@gj-kit/expo-workouts/core';
/**
* Our opinion about what a settings screen should render, as a PURE function rather than a field on
* `AuthorizationState`: if the platform's permission UI changes, an opinion baked into the contract
* would be wrong in a way the raw facts would not have been. Adopt it or re-implement it.
*
* The one rule that matters: `'unknown'` NEVER produces `'openSettings'`. Every iOS read scope is
* permanently `'unknown'`, so treating it as a problem would show every iOS user "go check
* Settings" forever.
*/
declare function authorizationAdvice(facts: AuthorizationFacts): AuthorizationAdvice;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-workouts
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub