[英]Is there a way to call a React Native function from Native Android Code?
尋找一種從 Native Android 代碼調用 React Native function 的方法。
提前致謝。
在反應本機文檔中檢查這一點。
https://reactnative.dev/docs/communication-ios#calling-react-native-functions-from-native-events
創建自定義原生組件后,您可以觸發事件並在 react native 中處理這些事件。
ios: https://reactnative.dev/docs/native-components-ios#events
android: https://reactnative.dev/docs/native-components-android#events
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.