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 + + + ); ```