Migrating v4 -> v5
react-native-ui-lib@5.x.x
#
#
Presets Updates- Typography - Now provides a full set of typographies in all weights
- Colors
- Spacings - Unified both platforms to the same spacing presets (multiples of 4s).
#
Components#
AnimatedImageprops change:
imageSource
=>source
imageStyle
=>style
testId
=>testID
#
AnimatedScannerprops change:
progress
accepts number instead of Animated.Value
#
Buttonprops change:
containerStyle
=>style
#
DialogOld implementation was deprecated. See new example screen
#
TextInputComponent renamed to TextField
and enhanced with more form capabilities like validations.
<TextField placeholder="Enter email" validate="email" errorMessage="Email is invalid" />
#
RadioGroupprops change:
value
=>initialValue
#
ToastImplementation had slightly changed, please see example screen
relative
value forposition
prop was removed- Blur effect is not part of the component
#
ListItemComponent not supporting animation out of the box (animatable wrapper was removed).
#
LoaderScreenRemove animationProps
#
DrawerComponent implementation was completely changed and is using react-native-gesture-handler
as its base infrastructure instead of react-native-interactable
Please see example screen
#
CarouselComponent API and implementation has changed. Now supports non-full-page carousel and a better way of rendering Carousel children.
Please refer to our Docs to learn more about the new API.
#
Removed Dependencies- react-native-interactable
#
New Peer Dependencies (these should be installed separately)react-native-reanimated
react-native-gesture-handler
@react-native-community/blur
@react-native-community/datetimepicker
#
Removed componentsMultipleShadow
Tour
Notification
CardItem
CardSection