Native controls and haptics
Build pressable controls with Link, Icon, Spinner, and an expanded Button, and configure haptics for your app.
New features
- Added Interactive for building pressable controls with optional press-shrink animation.
- Added Icon to render SVG icons and Spinner to indicate loading.
- Added Link for navigation and inline actions, with a
secondarytone. - Expanded Button with variants, icons, and a loading state.
- Added Button.Group to group related actions and Button.Align to align actions with surrounding content.
- Added
pressShrinkandhapticssettings to VortexProvider. The default haptics adapter uses the optionalreact-native-haptic-feedbackpeer when installed. Pass an adapter built withexpo-haptics, or passfalseto turn haptics off. - Added a
hapticprop for presses on Interactive and Button. Both play a medium impact on long press when you provideonLongPress. - Added useHaptics to access the configured adapter.
Breaking changes
- Required
react-native-svg@>=15.0.0as a peer dependency. Install it in your app before upgrading. Use your platform's setup in the React Native Quick Start.
