This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useRef, useContext } from 'react'; | |
| import { WebView } from 'react-native-webview'; | |
| import { Subject, BehaviorSubject } from 'rxjs'; | |
| import { map, tap, filter } from 'rxjs/operators'; | |
| const WebViewContext = React.createContext(); | |
| function WebViewWrapper() { | |
| const webViewRef = useRef(null); | |
| const message$ = new Subject(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, createContext } from 'react'; | |
| import { WebView } from 'react-native-webview'; | |
| import { fromEvent } from 'rxjs'; | |
| import { map, filter, take } from 'rxjs/operators'; | |
| const ResultContext = createContext(); | |
| const WebViewContext = createContext(); | |
| function MyComponent() { | |
| const [result, setResult] = useState(null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://smartcontracts.org/docs/quickstart/1-quickstart.html | |
| https://www.google.com/search?gs_ssp=eJzj4tDP1TcwSiooNGD04kgpSkzPz1OoAgA8VAYb&q=dragon+z&rlz=1C5CHFA_enIN963IN964&oq=dragon+z&aqs=chrome.1.69i57j46i512j0i512j46i512j0i512l2j0i10i512j0i512l3.2933j0j7&sourceid=chrome&ie=UTF-8#wgvs=e&wptab=s:H4sIAAAAAAAAAONgVuLQz9U3MEoqKHzEaMwt8PLHPWEprUlrTl5jVOHiCs7IL3fNK8ksqRQS42KDsnikuLjgmnh2MbGFlDlnJBYtYpVIKUpMz89TSErMyVGoUkgGCiYml6QWFQMA8u9j-GYAAAA | |
| https://discord.com/invite/UFjtDNJfeV | |
| https://smartcontracts.org/docs/developers-guide/computation-and-storage-costs.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DFX_VERSION=0.8.5 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Identity = require("@dfinity/identity"); | |
| const sha256 = require("sha256"); | |
| const fs = require("fs"); | |
| const Path = require("path"); | |
| const localCanisterIds = require("../../../../.dfx/local/canister_ids.json"); | |
| const canisterId = localCanisterIds.invoice.local; | |
| const ledgerCanisterId = localCanisterIds.ledger.local; | |
| const fetch = require("isomorphic-fetch"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ethereum.isConnected | |
| earth.isConnected([‘eth’]) | |
| earth.isConnected([‘icp’,‘eth’]); | |
| {connected: true, | |
| connectedSymbol: ‘icp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jj |