Skip to content

Commit 92cc0de

Browse files
authored
Merge pull request #170 from simpleweb/hotfix/fix-router-import
Hotfix: Fix the import for the Router in the Main screen
2 parents 96f07c8 + 96a32ae commit 92cc0de

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/shiny-zoos-smell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"romulus-cli": patch
3+
---
4+
5+
Fix the import for the Router in the Main screen
6+
Imports the `RootStackParamList` in the screen command

generators/base/templates/App/Screens/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { t } from "<%= name %>/App/Helpers/Translations";
66
<% } -%>
77
import Button from '<%= name %>/App/Components/Button';
88
import Text from '<%= name %>/App/Components/Text';
9-
import { RootStackParamList } from "<%= name %>/App/Router";
9+
import { RootStackParamList } from "<%= name %>/App/Components/Router";
1010

1111
type MainScreenNavigationProp = StackNavigationProp<RootStackParamList, "Main">;
1212

generators/screen/templates/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Box } from "@mobily/stacks";
22
import React from "react";
33
import { StackNavigationProp } from "@react-navigation/stack";
44
import Text from "<%= name %>/App/Components/Text";
5+
import { RootStackParamList } from "<%= name %>/App/Components/Router";
56

67
type <%= screen %>ScreenNavigationProp = StackNavigationProp<
78
RootStackParamList,

0 commit comments

Comments
 (0)