1
1
import React from 'react' ;
2
- import { NavigationContainer } from '@react-navigation/native' ;
2
+ import { NavigationContainer , createNavigationContainerRef } from '@react-navigation/native' ;
3
3
4
- const Stack = createStackNavigator ( ) ; // Initialize the stack navigator
5
4
6
- import { createStackNavigator } from '@react-navigation/stack' ;
5
+ // Initialize the stack navigator
6
+ const Stack = createNavigationContainer ( ) ;
7
7
8
- const Stack = createStackNavigator ( ) ;
9
-
10
- const LightningPayment = ( ) => {
8
+ // Define the LightningPaymentScreen component
9
+ const LightningPaymentScreen = ( ) => {
11
10
return (
12
- < NavigationContainer >
13
- < Stack . Navigator >
14
- < Stack . Screen name = "LightningPayment" component = { LightningPaymentScreen } />
15
- < Stack . Screen name = "PaymentConfirmation" component = { PaymentConfirmationScreen } />
16
- < Stack . Screen name = "PaymentHistory" component = { PaymentHistoryScreen } />
17
- </ Stack . Navigator >
18
- </ NavigationContainer >
11
+ // Your screen content here
12
+ < > </ >
19
13
) ;
20
14
} ;
15
+
21
16
// Define PaymentConfirmationScreen component
22
17
const PaymentConfirmationScreen = ( ) => {
23
18
return (
@@ -33,16 +28,17 @@ const PaymentHistoryScreen = () => {
33
28
< > </ >
34
29
) ;
35
30
} ;
36
- // Define the LightningPaymentScreen component
37
- const LightningPaymentScreen = ( ) => {
31
+
32
+ const LightningPayment = ( ) => {
38
33
return (
39
- // Your screen content here
40
- < > </ >
34
+ < NavigationContainer >
35
+ < Stack . Navigator >
36
+ < Stack . Screen name = "LightningPayment" component = { LightningPaymentScreen } />
37
+ < Stack . Screen name = "PaymentConfirmation" component = { PaymentConfirmationScreen } />
38
+ < Stack . Screen name = "PaymentHistory" component = { PaymentHistoryScreen } />
39
+ </ Stack . Navigator >
40
+ </ NavigationContainer >
41
41
) ;
42
42
} ;
43
43
44
- export default LightningPayment ;
45
- function createStackNavigator ( ) {
46
- throw new Error ( 'Function not implemented.' ) ;
47
- }
48
-
44
+ export default LightningPayment ;
0 commit comments