[英]React-Native Android: Pass Object as prop for Native Android UI Component
I'm creating a Native UI component for my React-Native Android app in Java. 我正在为Java中的React-Native Android应用程序创建一个Native UI组件。 There's a fairly complex object that I need to pass in order to render the component. 我需要传递一个相当复杂的对象才能渲染组件。
Is there a way to pass an Object as a prop with the @ReactProp annotation? 有没有办法使用@ReactProp注释将对象作为道具传递?
Thanks 谢谢
使用ReadableMap解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.