chore: enable close button in react-native widget (#1910)
This commit is contained in:
parent
b6f4006c15
commit
7d5493ac78
3 changed files with 42 additions and 12 deletions
|
@ -26,3 +26,11 @@ export const IFrameHelper = {
|
|||
},
|
||||
getMessage: e => JSON.parse(e.data.replace(WOOT_PREFIX, '')),
|
||||
};
|
||||
export const RNHelper = {
|
||||
isRNWebView: () => window.ReactNativeWebView,
|
||||
sendMessage: msg => {
|
||||
window.ReactNativeWebView.postMessage(
|
||||
`chatwoot-widget:${JSON.stringify({ ...msg })}`
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue