Skip to content

Commit 4c8d97a

Browse files
authored
fix(boilerplate): reworks some mst removal decorators (#2832 by @frankcalise)
1 parent d5347ea commit 4c8d97a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

boilerplate/app/app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ function App(props: AppProps) {
101101
// In iOS: application:didFinishLaunchingWithOptions:
102102
// In Android: https://stackoverflow.com/a/45838109/204044
103103
// You can replace with your own loading component if you wish.
104-
// @mst replace-next-line if (!isNavigationStateRestored || (!areFontsLoaded && !fontLoadError)) {
105104
if (
106-
!rehydrated ||
105+
!rehydrated || // @mst remove-current-line
107106
!isNavigationStateRestored ||
108107
!isI18nInitialized ||
109108
(!areFontsLoaded && !fontLoadError)

boilerplate/app/screens/WelcomeScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface WelcomeScreenProps extends AppStackScreenProps<"Welcome"> {}
2121

2222
// @mst replace-next-line export const WelcomeScreen: FC<WelcomeScreenProps> = (
2323
export const WelcomeScreen: FC<WelcomeScreenProps> = observer(
24-
function WelcomeScreen(
24+
function WelcomeScreen( // @mst remove-current-line
2525
_props, // @demo remove-current-line
2626
// @mst replace-next-line ) => {
2727
) {
@@ -81,7 +81,7 @@ export const WelcomeScreen: FC<WelcomeScreenProps> = observer(
8181
)
8282
// @mst replace-next-line }
8383
},
84-
)
84+
) // @mst remove-current-line
8585

8686
const $topContainer: ThemedStyle<ViewStyle> = ({ spacing }) => ({
8787
flexShrink: 1,

0 commit comments

Comments
 (0)