@launchdarkly/react-native-client-sdk - v10.23.2
    Preparing search index...

    Function useJsonVariation

    • Determines the json variation of a feature flag.

      This version may be favored in TypeScript versus variation because it returns an unknown type instead of any. unknown will require a cast before usage.

      Parameters

      • key: string

        The unique key of the feature flag.

      • defaultValue: unknown

        The default value of the flag, to be used if the value is not available from LaunchDarkly.

      Returns unknown

      The json value.