Consumer-facing notes for upgrading react-native-multi-selectbox. For full release history, see CHANGELOG.md.
- Peers:
react≥ 18 andreact-native≥ 0.73 (Expo SDK 50+ recommended). Drop older RN CLI / Expo SDK baselines if you still target them only for this library. - Removed peers:
lodashandreact-native-svgare no longer required by this package. Remove them from your app if you only installed them for SelectBox. - TypeScript: the public API ships with types (
SelectOption, single vs multi props). Option shape remains{ id, item }unless you map withoptionIdKey/optionLabelKey. - Default options list:
virtualizeddefaults tofalse(host-safeScrollView). Usevirtualized={true}only for large option lists without an outer vertical scroll parent.
-
Install the latest 2.x:
npm install react-native-multi-selectbox@latest
-
Align React / React Native (or Expo) to supported peers.
-
Remove unused
lodash/react-native-svgif they were only for this library. -
Prefer embedding SelectBox under
ScrollView/FlatList/SectionListwith the defaultvirtualized={false}. -
Optional: adopt 2.0.2+ controls (
maxSelected,optionIdKey/optionLabelKey,hideChipClose, etc.) — see the package README and live demo.
This repository is a pnpm monorepo (packages/multi-selectbox + apps/example). App consumers only need the published npm package; contributors should follow CONTRIBUTING.md.