Skip to content

Commit

Permalink
fix: Remove unnecessary NativeStackScreenProps in screen generator (#…
Browse files Browse the repository at this point in the history
…2458 by @theabhishek2511)

* Remove unnecessary NativeStackScreenProps

* chore: remove unused import

---------

Co-authored-by: Frank Calise <[email protected]>
  • Loading branch information
theabhishek2511 and frankcalise authored Aug 4, 2023
1 parent e79aea1 commit 68f3380
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boilerplate/ignite/templates/screen/NAMEScreen.tsx.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ patches:
import React, { FC } from "react"
import { observer } from "mobx-react-lite"
import { ViewStyle } from "react-native"
import { NativeStackScreenProps } from "@react-navigation/native-stack"
import { AppStackScreenProps } from "app/navigators"
import { Screen, Text } from "app/components"
// import { useNavigation } from "@react-navigation/native"
// import { useStores } from "app/models"

interface <%= props.pascalCaseName %>ScreenProps extends NativeStackScreenProps<AppStackScreenProps<"<%= props.pascalCaseName %>">> {}
interface <%= props.pascalCaseName %>ScreenProps extends AppStackScreenProps<"<%= props.pascalCaseName %>"> {}

export const <%= props.pascalCaseName %>Screen: FC<<%= props.pascalCaseName %>ScreenProps> = observer(function <%= props.pascalCaseName %>Screen() {
// Pull in one of our MST stores
Expand Down

0 comments on commit 68f3380

Please sign in to comment.