From c9a136d996ca1380287133472b02cc2ce97f836d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 22 Jul 2024 16:58:26 +0100 Subject: [PATCH] chore: update README --- README.md | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af018c7..4291eac 100644 --- a/README.md +++ b/README.md @@ -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 ( - + <> + onShowTicketsSDK()} + style={({ pressed }) => [ + { + flexDirection: 'row', + alignItems: 'center', + backgroundColor: '#ffffff', + padding: 12, + marginHorizontal: 12, + }, + { + backgroundColor: pressed ? '#00000008' : 'white', + }, + ]} + > + Show Tickets SDK Modal + + + ); ```