Skip to main content
Back to changelog

Native controls and haptics

vortex-native v0.2.0: 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 secondary tone.
  • 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 pressShrink and haptics settings to VortexProvider. The default haptics adapter uses the optional react-native-haptic-feedback peer when installed. Pass an adapter built with expo-haptics, or pass false to turn haptics off.
  • Added a haptic prop for presses on Interactive and Button. Both play a medium impact on long press when you provide onLongPress.
  • Added useHaptics to access the configured adapter.

Breaking changes

  • Required react-native-svg@>=15.0.0 as a peer dependency. Install it in your app before upgrading. Use your platform's setup in the React Native Quick Start.