diff --git a/src/components/App.js b/src/components/App.js index 86948b36f..b8317a082 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -72,8 +72,12 @@ function MapComponent() { async function handleClickTree(tree) { log.warn('click tree:', tree); + if (window.ReactNativeWebView) { + log.debug('react native'); + window.ReactNativeWebView?.postMessage(JSON.stringify(tree)); + } if (window.parent) { - log.warn('DEMO:ok message parent'); + log.debug('window.parent'); window.parent.postMessage(JSON.stringify(tree), '*'); }