Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOS7-TM committed Jul 22, 2024
1 parent 1902d9d commit c9a136d
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,39 @@ You can see the results of `getToken()`, `getMemberInfo()` and `getIsLoggedIn()`
Example:

```typescript

import { Pressable } from 'react-native';
import { TicketsSdkModal } from 'react-native-ticketmaster-ignite';

const [showTicketsSdk, setShowTicketsSdk] = useState(false);

const onShowTicketsSDK = () => {
setShowTicketsSdk(true);
};

return (
<TicketsSdkModal
showTicketsModal={showTicketsSdk}
setShowTicketsModal={setShowTicketsSdk}
/>
<>
<Pressable
onPress={() => onShowTicketsSDK()}
style={({ pressed }) => [
{
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#ffffff',
padding: 12,
marginHorizontal: 12,
},
{
backgroundColor: pressed ? '#00000008' : 'white',
},
]}
>
<Text style={styles.title}>Show Tickets SDK Modal</Text>
</Pressable>
<TicketsSdkModal
showTicketsModal={showTicketsSdk}
setShowTicketsModal={setShowTicketsSdk}
/>
</>
);

```
Expand Down

0 comments on commit c9a136d

Please sign in to comment.