-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement QR Code Generation and Scanning for Cashu Wallet (#213)
* added QRCODE * removed vision camera lib * reverted tsconfig * added expo camera for qrcode scanning * added qrcode send or recieve functionality * added qrcode send or recieve functionality * added qrcode identifiier * removed unecessary folders * made modifications * made modifications * corrected tsconfig * made changes
- Loading branch information
Showing
8 changed files
with
283 additions
and
134 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
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
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,25 @@ | ||
import React from 'react'; | ||
import {StyleSheet, View} from 'react-native'; | ||
import QRCode from 'react-native-qrcode-svg'; | ||
|
||
interface GenerateQRCodeProps { | ||
data: string; | ||
size?: number; | ||
} | ||
|
||
const GenerateQRCode: React.FC<GenerateQRCodeProps> = ({data, size = 200}) => { | ||
return ( | ||
<View style={styles.container}> | ||
<QRCode value={data} size={size} /> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); | ||
|
||
export default GenerateQRCode; |
Oops, something went wrong.