I want to send a rowId from react native Listview to one of method in my android activity.the reason is I am integrating react to an existing android app. so for the time sake I wana send rowID for further process. Any idea on this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Have a look at React Modules Android & React Modules IOS
This is the only way to communicate with React component and native component.
You need to create a react method in module and use that to accept the value and send it across to native activity.