Skip to content

Commit

Permalink
feat(package): add crestron event bridges to index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Mar 15, 2022
1 parent 778ba98 commit 55f57f6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions template/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import {
bridgeReceiveIntegerFromNative,
bridgeReceiveBooleanFromNative,
bridgeReceiveStringFromNative,
bridgeReceiveObjectFromNative,
} from "@crestron/ch5-crcomlib";
import App from "./App";

(window as any).bridgeReceiveIntegerFromNative = bridgeReceiveIntegerFromNative;
(window as any).bridgeReceiveBooleanFromNative = bridgeReceiveBooleanFromNative;
(window as any).bridgeReceiveStringFromNative = bridgeReceiveStringFromNative;
(window as any).bridgeReceiveObjectFromNative = bridgeReceiveObjectFromNative;

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root"),
);

0 comments on commit 55f57f6

Please sign in to comment.