Hi all! I have a question about using a version st...
# sdk-react
c
Hi all! I have a question about using a version string attribute on feature flags with the react-sdk in a React Native app. In an upcoming version of our app, we would like to start passing our
appVersion
to growthbook to be able to turn on feature flags for only certain versions of the app. This was not part of our original growthbook implementation. We set up our version attribute following https://docs.growthbook.io/features/targeting#semantic-version-targeting. In testing older versions of the app, which are not passing
appVersion
as an attribute, we found that our app is crashing at the
paddedVersionString
function in the growthbook sdk. Is this a known issue? Is there a workaround that allows us to use this attribute on new versions of the app but will not crash older versions that are still out there?
f
That's interesting, I've not heard of this
@future-teacher-7046 do you know?
c
I would be happy to provide more information on this if needed. It could just come down to misuse, but as far as I can tell, we’re following the docs.