as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
This step is required only for apps that use the Carousel component. If your app doesn’t use Carousel, skip to Step 6: Testing Updates. With RN 0.83, the Carousel component moved from the kepler-ui-components package to a separate package in @amazon-devices. If you use Carousel, you need to migrate the component to the new package.
If no results, proceed to Step 6: Testing Updates.

5.2 Update dependencies

  • If Carousel is the only import from kepler-ui-components, replace the dependency entirely.
  • If other components are also imported, keep kepler-ui-components and add vega-carousel alongside it.

5.3 Update import statements

5.4 Migrate data access pattern

Carousel V2 replaces the simple data array prop with a dataAdapter pattern for better performance.

5.5 Migrate props

Update prop names to the V2 Prop name in the table below. Remove these deprecated V1 props (no V2 equivalent)
  • itemDimensions
  • getItemForIndex
  • firstItemOffset
  • selectionBorder.enabled

5.6 Migrate event handlers

If you used onFocus or onFocusUpdate for tracking the selected carousel item, migrate to onSelectionChanged.

5.7 Complete migration example

For the complete property mapping reference, see the Vega Carousel documentation.
最后修改于 2026年7月9日