Working with Propaga button
You can easily implement a ready-to-use checkout button like this:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { usePropaga } from '@propaga/react-native-sdk';
const MyAwesomeComponent = () => {
const { ... } = usePropaga();
return ( ... );
}

import { useState } from 'react';
import { View, Button } from 'react-native';
import { usePropaga } from '@propaga/react-native-sdk';
export default function App() {
const [isPropagaActive, setIsPropagaActive] = useState(false);
const { PropagaButton } = usePropaga();
return (
<View style={styles.container}>
<PropagaButton
totalAmount={2000}
isActive={isPropagaActive}
cornerStoreId="...."
token={'...'}
onPress={() => {
setIsPropagaActive(!isPropagaActive);
}} />
</View>
);
}
Was this page helpful?
