as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
useComponentInstance is a custom hook that provides access to the current component’s instance information in a React Native for Vega app. This hook is useful when you need to access the component’s metadata such as its name, type, or ID. Use the IComponentInstance object to identify an instance of a launched component. It is used by the OS to communicate additional information about the component instance to the application process. IComponentInstance Type:
ComponentType Type:

Get started with useComponentInstance

The useComponentInstance hook is part of the @amazon-devices/react-native-kepler module.

Examples


最后修改于 2026年10月26日