Skip to content

Commit b0ce8dc

Browse files
committed
chore(example): add AllProducts screen
1 parent 7ad518e commit b0ce8dc

File tree

3 files changed

+433
-0
lines changed

3 files changed

+433
-0
lines changed

example/navigation/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import {NavigationContainer} from '@react-navigation/native';
22
import {createNativeStackNavigator} from '@react-navigation/native-stack';
33

44
import Home from '../screens/Home';
5+
import AllProducts from '../screens/AllProducts';
56
import PurchaseFlow from '../screens/PurchaseFlow';
67
import SubscriptionFlow from '../screens/SubscriptionFlow';
78
import AvailablePurchases from '../screens/AvailablePurchases';
89
import OfferCode from '../screens/OfferCode';
910

1011
export type RootStackParamList = {
1112
Home: undefined;
13+
AllProducts: undefined;
1214
PurchaseFlow: undefined;
1315
SubscriptionFlow: undefined;
1416
AvailablePurchases: undefined;
@@ -26,6 +28,11 @@ export default function AppNavigator() {
2628
component={Home}
2729
options={{title: 'react-native-iap'}}
2830
/>
31+
<Stack.Screen
32+
name="AllProducts"
33+
component={AllProducts}
34+
options={{title: 'All Products'}}
35+
/>
2936
<Stack.Screen
3037
name="PurchaseFlow"
3138
component={PurchaseFlow}

0 commit comments

Comments
 (0)