Skip to content

5.17.0

Compare
Choose a tag to compare
@ethanshar ethanshar released this 30 Nov 08:03
· 1903 commits to master since this release

🎁 Features

  • Add dateFormatter prop to dateTimePicker (#1027)
  • Introducing useToggleValue hook to toggle between any two values with ease! (#1019)
import {Hooks} from 'react-native-ui-lib;
const {useToggleValue} = Hooks;

const YourComponent = () => {
  const [value, toggle, setValue] = useToggleValue(initialValue) // will use booleans 
  const [value, toggle, setValue] = useToggleValue(initialValue, alternateValue) // will toggle between initial and alternate value
}

πŸ”§ Fixes

  • Dialog - RN63 broke Modal's onDismiss method, this fixes our API (#1026)
  • Fix issue with modifiers support based on context (#1035)
  • DateTimePicker - turn to a controlled component (changing value in runtime will take effect). (#989)
  • Fix Checkbox alignment bug (#1039)
  • Fix FloatingButton visibility bug when visible is initialized to false (#1021)
  • Fix typings for FloatingButton props (#1032)
  • Fire onLoad event for AnimatedImage (#1033)

πŸ’‘ Deprecations & Migrations

  • Picker API migration
    • From now on pass value as a primitive (string/number) instead of an object
    • Picker.Item should accept both value and label props separately (instead of only value prop that contains the value and label together)
  • CardImage, CardSection, StateScreen - Adding props deprecation warnings. (#1023)
  • Fix issue with missing component in our docs site (Fix #1022) (#1024)
  • Migration - Name change - ComponentPropTypes to ComponentProps (e.b ButtonPropTypes changed to ButtonProps) (#1030)
  • Add a migrate prop to allow migrating manually to the new Picker API (#1048)

βš™οΈ Maintenance & Infra

  • Refactor Picker & PicketItem components to use context (#1000 + #1001)
  • ColorPicker - Remove UNSAFE method (#940)
  • ChipsInput - Removing UNSAFE method. (#1018)
  • Update expandableSection's docs (#1025)