Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @flow strict-local
*/

import {PrivateKey} from 'bsv-wasm-bundler';
// import {PrivateKey} from 'bsv-wasm-bundler';
import React from 'react';
import type {Node} from 'react';
import {
Expand Down Expand Up @@ -57,8 +57,17 @@ const Section = ({children, title}): Node => {

const App: () => Node = () => {
const isDarkMode = useColorScheme() === 'dark';
const random = PrivateKey.fromRandom().toHex();
console.log(random);
// const random = PrivateKey.fromRandom().toHex();
// console.log(random);
React.useEffect(() => {
const pls = async () => {
const {PrivateKey} = await import('bsv-wasm-bundler');
const random = PrivateKey.fromRandom().toHex();
console.log(random);
};

pls();
}, []);

const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
Expand Down