Migrating v5 -> v6
react-native-ui-lib@6.x.x
β
Presetsβ
Colorsβ
The colors of the palette were updated to more accessible ones. Renamed dark preset (dark10, dark20, ...) to grey (grey10, grey20, ...)
Shadowsβ
Old shadow presets changed to Shadows.sh10.top/bottom
, Shadows.sh20.top/bottom
& Shadows.sh30.top/bottom
Componentsβ
Typingsβ
Various components typings were renamed ('ComponentPropTypes' is now 'ComponentProps')
SelectableComponentβ
Component was removed
AnimationManagerβ
Service was removed
TagsInputβ
Component was removed, please use ChipsInput
instead
ThemeManagerβ
ThemeManager.setTheme
API was removed
Avatarβ
isOnline
removed (use badgeProps instead)status
removed (use badgeProps instead)
Badgeβ
animationProps
(please wrap with your own animated view)testId
(renamedtestID
)size
will not accept enum 'BADGE_SIZES' anymore, pass a number instead
See conversion map
pimpleSmall -> 6
pimpleBig -> 10
pimpleHuge -> 14
small -> 16
default -> 20
large -> 24
Card.Imageβ
imageSource
(renamedsource
)borderRadius
(should be passed to the Card component)
PanningProviderDirectionβ
Renamed PanningDirection
KeyboardTrackingViewβ
useSafeArea
prop default value changed to false
.
react-native-animatableβ
Dependency was removed
Stepperβ
New design and API.
ProgressBarβ
New design and API.
Dialogβ
onModalDismissed
removed, use 'onDialogDismissed' instead
CardSectionβ
Removed source
, use imageSource
StateScreenβ
- Removed
source
, useimageSource
instead - Removed
testId
, usetestID
TabBarItemβ
Removed badge
, use badgeProps
instead
TabControllerβ
- The component has been re-implemented using reanimated v2
TabController.TabBar
childrend
props is not supported anymore, passitems
toTabController
insteadIncubator.TabController
removed