Skip to content

Commit

Permalink
fix(boilerplate): reworks some mst removal decorators (#2832 by @fran…
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcalise authored Oct 30, 2024
1 parent d5347ea commit 4c8d97a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions boilerplate/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ function App(props: AppProps) {
// In iOS: application:didFinishLaunchingWithOptions:
// In Android: https://stackoverflow.com/a/45838109/204044
// You can replace with your own loading component if you wish.
// @mst replace-next-line if (!isNavigationStateRestored || (!areFontsLoaded && !fontLoadError)) {
if (
!rehydrated ||
!rehydrated || // @mst remove-current-line
!isNavigationStateRestored ||
!isI18nInitialized ||
(!areFontsLoaded && !fontLoadError)
Expand Down
4 changes: 2 additions & 2 deletions boilerplate/app/screens/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface WelcomeScreenProps extends AppStackScreenProps<"Welcome"> {}

// @mst replace-next-line export const WelcomeScreen: FC<WelcomeScreenProps> = (
export const WelcomeScreen: FC<WelcomeScreenProps> = observer(
function WelcomeScreen(
function WelcomeScreen( // @mst remove-current-line
_props, // @demo remove-current-line
// @mst replace-next-line ) => {
) {
Expand Down Expand Up @@ -81,7 +81,7 @@ export const WelcomeScreen: FC<WelcomeScreenProps> = observer(
)
// @mst replace-next-line }
},
)
) // @mst remove-current-line

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

0 comments on commit 4c8d97a

Please sign in to comment.