This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Description
Is your feature request related to a problem? Please describe.
I would like to use the SDK for anonymous users, i.e. pre-registration in our app.
Describe the solution you'd like
Make user an optional parameter in LDClient#configure. Even if i ignore typescript warnings, the LaunchdarklyReactNativeClient#internalConfigure function requires a user object to configure the native iOS client.
Describe alternatives you've considered
As far as I can tell, the only way around this currently is to generate my own key and pass { key: myGeneratedRandomKey, anonymous: true } to configure.
Additional context
The React client clearly defaults to anonymous user without specifying a key, and the initial user parameter is optional in the underlying LDClient iOS SDK