Skip to content

Releases: ontech7/react-native-dialog

v1.3.0

Choose a tag to compare

@ontech7 ontech7 released this 31 May 21:02

Changelog

  • Add dark-mode support to DialogProvider: customStyles now also accepts a { light, dark } theme, plus new darkStyles and colorScheme props. colorScheme defaults to light — drive it from useColorScheme() or your in-app theme toggle to enable dark
  • Fix the expo-blur blurReductionFactor prop name (was misspelled blurReducedFactor)
  • Add the DialogStyleTheme type
  • Rework shadcnStyle to match the shadcn/ui Dialog (default neutral tokens, p-6/gap-4 spacing, tracking-tight title, rounded-lg/rounded-md radii, shadow-lg/shadow-sm), shipped as a light + dark theme
  • Add a materialStyle preset (Material Design 3), also with a dark variant
  • The backdrop (blur + dim) now fades in/out with the open animation instead of appearing instantly
  • Add an overlayColor prop to set the scrim over the backdrop; the default scrim behind a blurred dialog is now a bit darker so the dialog stands out
  • DialogInput now defaults its cursorColor to the themed text color, so the caret stays visible in dark mode

v1.2.0

Choose a tag to compare

@ontech7 ontech7 released this 29 Aug 22:20
f2e88a8
  • Add center animation
  • Add some default styles like shadcnStyle
  • Move DialogAction style to TouchableOpacity style and Text textStyle
  • Change open to optional (by default it's true)
  • Fix DialogInput structure and style

v1.1.2

Choose a tag to compare

@ontech7 ontech7 released this 19 Aug 13:23
  • Add delay prop on Dialog component
  • Fix DialogInput cursor, placeholder and text color

v1.1.1

Choose a tag to compare

@ontech7 ontech7 released this 19 Aug 10:45
  • Fix overlay when animation is set to false

v1.1.0

Choose a tag to compare

@ontech7 ontech7 released this 19 Aug 09:31
78efd30
  • Added onPressOut event on Dialog component
  • Added animation prop on Dialog component
  • Removed blur library (the user can import whatever blur library), no Expo necessary
  • Changed portal library
  • Removed react-native-reanimated and used react-native library for animations
  • Moved from dist to build

v1.0.0

Choose a tag to compare

@ontech7 ontech7 released this 18 Aug 13:37
da03d0e
  • Fully compatible with Expo SDK >= 51
  • shadcn/ui approach, with fully customizable components
  • Possibility to change global styles from the DialogProvider
  • Portalized pupup/dialog
  • Modifiable duration (default: 200)
  • Modifiable tint dark/light (default: dark)
  • Modifiable slide-in animation (default: none)