Skip to content

V6 migration guide #1558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 14, 2021
75 changes: 75 additions & 0 deletions markdowns/getting-started/v6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
index: 4
path: "/getting-started/v6"
title: "v6"
---
## `[email protected]`

### Presets

#### Colors
Update colors palette to more accessible ones.
Renamed dark preset (dark10, dark20, ...) to grey (grey10, grey20, ...)

### 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` (renamed `testID`)
- `size` will not accept enum 'BADGE_SIZES' anymore, pass number instead

#### Card.Image
- `imageSource` (renamed `source`)
- `borderRadius` (should be pass to 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`, use `imageSource` instead
- Removed `testId`, use `testID`

#### TabBarItem
Removed `badge`, use `badgeProps` instead

#### TabController
- The component has been re-implemented using reanimated v2
- `TabController.TabBar` `childrend` props is not supported anymore, pass `items` to `TabController` instead
- `Incubator.TabController` removed