1import react, { useEffect } from 'react';
2import { View, Button } from 'react-native';
3import analytics from '@react-native-firebase/analytics';
4
5function App() {
6 return (
7 <View>
8 <Button
9 title="Add To Basket"
10 onPress={async () =>
11 await analytics().logEvent('basket', {
12 id: 3745092,
13 item: 'mens grey t-shirt',
14 description: ['round neck', 'long sleeved'],
15 size: 'L',
16 })
17 }
18 />
19 </View>
20 );
21}
22