9,310
edits
Line 114: | Line 114: | ||
* This may cause problems with linter or similar tools; for example, the one within the create-react-app tool. The solution is to explain the linter that the global variable <code>MobileCRM</code> exists. For example: <code>const MobileCRM = window.MobileCRM;</code> | * This may cause problems with linter or similar tools; for example, the one within the create-react-app tool. The solution is to explain the linter that the global variable <code>MobileCRM</code> exists. For example: <code>const MobileCRM = window.MobileCRM;</code> | ||
* If you are using Typescript, make sure to include the file [https://github.com/Resconet/JSBridge/blob/master/src/JSBridge.d.ts JSBridge.d.ts]. This ensures that Typescript understands the global variable <code>MobileCRM</code>. | * If you are using Typescript, make sure to include the file [https://github.com/Resconet/JSBridge/blob/master/src/JSBridge.d.ts JSBridge.d.ts]. This ensures that Typescript understands the global variable <code>MobileCRM</code>. | ||
A sample integration with a third-party library is described here: [[React with JSBridge]]. | |||
== Asynchronous approach == | == Asynchronous approach == |