Migrating v5 -> v6
react-native-ui-lib@6.x.x
#
#
Presets#
ColorsThe colors of the palette were updated to more accessible ones. Renamed dark preset (dark10, dark20, ...) to grey (grey10, grey20, ...)
#
ShadowsOld shadow presets changed to Shadows.sh10.top/bottom
, Shadows.sh20.top/bottom
& Shadows.sh30.top/bottom
#
Components#
TypingsVarious components typings were renamed ('ComponentPropTypes' is now 'ComponentProps')
#
SelectableComponentComponent was removed
#
AnimationManagerService was removed
#
TagsInputComponent was removed, please use ChipsInput
instead
#
ThemeManagerThemeManager.setTheme
API was removed
#
AvatarisOnline
removed (use badgeProps instead)status
removed (use badgeProps instead)
#
BadgeanimationProps
(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 -> 6pimpleBig -> 10pimpleHuge -> 14small -> 16default -> 20large -> 24
#
Card.ImageimageSource
(renamedsource
)borderRadius
(should be passed to the Card component)
#
PanningProviderDirectionRenamed PanningDirection
#
KeyboardTrackingViewuseSafeArea
prop default value changed to false
.
#
react-native-animatableDependency was removed
#
StepperNew design and API.
#
ProgressBarNew design and API.
#
Dialog onModalDismissed
removed, use 'onDialogDismissed' instead
#
CardSectionRemoved source
, use imageSource
#
StateScreen- Removed
source
, useimageSource
instead - Removed
testId
, usetestID
#
TabBarItemRemoved 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