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β
AnimatedImageβ
props change:
imageSource
=>source
imageStyle
=>style
testId
=>testID
AnimatedScannerβ
props change:
progress
accepts number instead of Animated.Value
Buttonβ
props change:
containerStyle
=>style
Dialogβ
Old implementation was deprecated. See new example screen
TextInputβ
Component renamed to TextField
and enhanced with more form capabilities like validations.
<TextField placeholder="Enter email" validate="email" errorMessage="Email is invalid" />
RadioGroupβ
props change:
value
=>initialValue
Toastβ
Implementation had slightly changed, please see example screen
relative
value forposition
prop was removed- Blur effect is not part of the component
ListItemβ
Component not supporting animation out of the box (animatable wrapper was removed).
LoaderScreenβ
Remove animationProps
Drawerβ
Component implementation was completely changed and is using react-native-gesture-handler
as its base infrastructure instead of react-native-interactable
Please see example screen
Carouselβ
Component 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 componentsβ
MultipleShadow
Tour
Notification
CardItem
CardSection