5.17.0
π 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