ota-ui-sdk-cno
v0.1.12
Published
React Native OTA UI SDK: pass productId and render exported UI.
Readme
cno/ota-ui-sdk
SDK React Native cho phép dự án truyền productId và render UI đã export. Bao gồm:
- Provider tải UI schema qua URL hoặc custom fetcher
- Registry/Renderer cho component theo
componentKey - Adapter tích hợp dịch vụ OTA sẵn có
Cách dùng nhanh (giả sử bạn có OTAService hiện tại):
- Bọc app bằng
ProductUIProvidervớiproductId - Đăng ký các component với
registerComponent - Render bằng
ProductRenderervớicomponentKey
Build/publish: chạy build trong thư mục gói và npm publish --access public.
