Skip to content

Commit bc43a5a

Browse files
committed
Fix Lightning UI
1 parent 21501a1 commit bc43a5a

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

src/navigation/Lightning.tsx

+18-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
import React from 'react';
2-
import { NavigationContainer } from '@react-navigation/native';
2+
import { NavigationContainer, createNavigationContainerRef } from '@react-navigation/native';
33

4-
const Stack = createStackNavigator(); // Initialize the stack navigator
54

6-
import { createStackNavigator } from '@react-navigation/stack';
5+
// Initialize the stack navigator
6+
const Stack = createNavigationContainer();
77

8-
const Stack = createStackNavigator();
9-
10-
const LightningPayment = () => {
8+
// Define the LightningPaymentScreen component
9+
const LightningPaymentScreen = () => {
1110
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+
<></>
1913
);
2014
};
15+
2116
// Define PaymentConfirmationScreen component
2217
const PaymentConfirmationScreen = () => {
2318
return (
@@ -33,16 +28,17 @@ const PaymentHistoryScreen = () => {
3328
<></>
3429
);
3530
};
36-
// Define the LightningPaymentScreen component
37-
const LightningPaymentScreen = () => {
31+
32+
const LightningPayment = () => {
3833
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>
4141
);
4242
};
4343

44-
export default LightningPayment;
45-
function createStackNavigator() {
46-
throw new Error('Function not implemented.');
47-
}
48-
44+
export default LightningPayment;

0 commit comments

Comments
 (0)