-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
31 lines (27 loc) · 833 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Button, View } from 'react-native';
import RampSdk from '@ramp-network/react-native-sdk';
export default function App() {
const ramp = new RampSdk({
url: 'https://ri-widget-staging.firebaseapp.com',
hostAppName: 'React Native Example',
hostLogoUrl: 'https://rampnetwork.github.io/assets/misc/test-logo.png',
}).on('*', (event) => {
console.log(`RampSdk.on('*')`, event);
});
return (
<View style={styles.container}>
<Button title={`Run Ramp Widget`} onPress={() => ramp?.show()} />
{/* <StatusBar style="auto" /> */}
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});