React Native SDK migration guide
6.0 moves the validated React Native target to Expo SDK 57 and aligns the SDK’s names with the iOS and Android SDKs. Update your app to the new configuration and prop names. The Android Material 3 date picker opt-in is removed.Prerequisites and version range
The peer dependency floors are unchanged:react-native ≥ 0.83.0 and react ≥ 19.2.0. The validated target moves up one Expo SDK.
For an Expo project, align the project to Expo SDK 57, then reinstall the FlowX packages with
npx expo install:
FlowX SDK changes
Renamed configuration options and props
Replace each 5.9 name with its 6.0 name. The 5.9 names still work in 6.0, but they are deprecated.baseUrl, enginePath and assetsBaseUrl apply to FlowX.configure and to the process, UI Flow and chat renderers. onDismissRequested applies to startProcess, continueProcess, startUiFlow and the process and UI Flow renderers.
In 5.9 the content helpers came only from @flowx/core-sdk/rn. @flowx/react-native-sdk now exports them too, under their new names only (getEnumerationItems, getMediaItemUrl, getSubstitutionTagContent).
New custom component action: runUploadAction
Custom components get input.runUploadAction(name, { uri, name, type }, params?) to upload a file through an upload action.
FlxCustomComponentData requires runAction and runUploadAction. If your tests build a mock of it by hand, add both.
Android Material 3 date picker removed
The opt-in Material 3 date picker forFlxDatePicker on Android is removed, along with the @react-native-community/datetimepicker peer dependency.
- Remove
material3from anyconfigureFlxUiToolkitcall. - The
@react-native-community/datetimepickerpackage is no longer needed by FlowX. Uninstall it if nothing else in your app uses it. - Keep the
@flowx/react-native-ui-toolkitExpo config plugin registered. It no longer changesAppThemeor setsextra.flxUiToolkit.material3. It now addsfontScaleto the main activity’sandroid:configChangesand declares the microphone permissions used by chat voice input. Runnpx expo prebuildagain after the upgrade.
Behavior changes
- A session with no usable access token now starts as anonymous instead of failing. In 5.9, a token that was
null,undefined(never set) or an empty string ('') made the start throwCall FlowX.setAccessToken(...) before starting a process.In 6.0 all three values start an anonymous session, and a backend that requires a token answers401. If your token fetch can returnnull,undefinedor'', check the value before you start a process; otherwise the failure only shows up later as a401. - Error and warning messages name
baseUrlandassetsBaseUrlinstead ofbaseURLandstaticAssetsPath. Update any host code that matches on their text.
Related resources
React Native SDK reference
React Native renderer SDK documentation
Migration overview
Full 5.9.x → 6.0.0 container app upgrade guide

