Is this a support request?
No.
Describe the bug
On Android, the callback given to registerAllFlagsListener is receiving a stringified array of feature flags instead of an actual array of strings. This is inconsistent with iOS & the typescript definitions provided by the library.
See images below:
Type definition + example code:

Console output:

To reproduce
On a brand new app, initialise the LaunchDarkly SDK & use the following snippet:
client = new LaunchDarkly();
client.registerAllFlagsListener('ALL_FLAGS_LISTENER', (updatedFlags) => {
console.log(typeof updatedFlags);
});
Then run the app on both iOS and Android and update a feature flag from the LaunchDarkly web app. The behaviour will differ between platforms.
Expected behavior
An array of strings representing which flags have changed should be passed in to the callback.
Logs
Non applicable.
SDK version
"launchdarkly-react-native-client-sdk": "5.0.0"
Language version, developer tools
Non applicable.
OS/platform
- MacOS Big Sur
- Android 9
- Tested on both React Native 0.65.1 & 0.64.2