forked from keep-starknet-strange/joyboy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor & remove unnecessary hooks (keep-starknet-strange#98)
* Shim buffer & crypto * Keypair utils * Refactor & remove useLocalStorage hook * Refactor navigation store & create auth store * Use expo secure store instead of async storage
- Loading branch information
Showing
16 changed files
with
206 additions
and
230 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ | |
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
} | ||
}, | ||
"plugins": [ | ||
"expo-secure-store" | ||
] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import registerRootComponent from "expo/build/launch/registerRootComponent"; | ||
import "fast-text-encoding"; | ||
import { Wrapper } from "./src/app/Wrapper"; | ||
import 'fast-text-encoding'; | ||
import './src/app/Shims'; | ||
|
||
import registerRootComponent from 'expo/build/launch/registerRootComponent'; | ||
|
||
import {Wrapper} from './src/app/Wrapper'; | ||
|
||
registerRootComponent(Wrapper); |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {Buffer} from 'buffer/'; | ||
import * as Crypto from 'expo-crypto'; | ||
|
||
global.Buffer = Buffer as any; | ||
|
||
global.crypto = { | ||
getRandomValues: (buffer: any) => Crypto.getRandomValues(buffer), | ||
randomUUID: () => Crypto.randomUUID() as any, | ||
getRandomBytes: (length: number) => Crypto.getRandomBytes(length), | ||
} as any; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.