Skip to content

Commit b1cb6c3

Browse files
authored
Fixes for expo-router app generation and issues with master merge up (#2772)
* Initial change of imports to use a unified alias * More import updates to fix router app generation * Lint fix * Update test * Fix demo removal for i18n These lines weren't getting removed in demo and failed tests. Did we not have a test for removing demo and compiling? * Need to also transform test setup file * Lint fix * Print command output when it fails for easier debugging * Need to remove App.tsx when using expo-router * Fix patch removal I'm confused about this one, it appeared to work and printed `patches/patch.patch` originally, but now the path isn't including the directory. So added a new CWD to make sure the file gets deleted, otherwise bun fails. * This only applied for the splashscreen changes ...from the test it was copied from * Add error output to ignite-new test as well * Remove test output change for now Potential issue with buffer size. Update to use spawn later so we can stream output. * Make sure test doesn't time out * Pin eslint react plugin version They added a bug, there's a fix but it's unreleased: jsx-eslint/eslint-plugin-react#3821
1 parent ec72bc2 commit b1cb6c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+158
-164
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- run:
6464
name: Run jest tests
6565
command: yarn test
66-
no_output_timeout: 5m
66+
no_output_timeout: 10m
6767
- save_cache:
6868
name: Save ignite dependency cache
6969
paths:

boilerplate/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "@expo/metro-runtime"
22
import * as SplashScreen from "expo-splash-screen"
3-
import App from "./app/app"
3+
import App from "@/app"
44

55
SplashScreen.preventAutoHideAsync()
66

boilerplate/app/components/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {
77
TextStyle,
88
ViewStyle,
99
} from "react-native"
10-
import type { ThemedStyle, ThemedStyleArray } from "app/theme"
10+
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
1111
import { $styles } from "../theme"
1212
import { Text, TextProps } from "./Text"
13-
import { useAppTheme } from "app/utils/useAppTheme"
13+
import { useAppTheme } from "@/utils/useAppTheme"
1414

1515
type Presets = "default" | "filled" | "reversed"
1616

boilerplate/app/components/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
ViewProps,
99
ViewStyle,
1010
} from "react-native"
11-
import type { ThemedStyle, ThemedStyleArray } from "app/theme"
11+
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
1212
import { $styles } from "../theme"
1313
import { Text, TextProps } from "./Text"
14-
import { useAppTheme } from "app/utils/useAppTheme"
14+
import { useAppTheme } from "@/utils/useAppTheme"
1515

1616
type Presets = "default" | "reversed"
1717

boilerplate/app/components/EmptyState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Image, ImageProps, ImageStyle, StyleProp, TextStyle, View, ViewStyle }
22
import { translate } from "../i18n"
33
import { Button, ButtonProps } from "./Button"
44
import { Text, TextProps } from "./Text"
5-
import { useAppTheme } from "app/utils/useAppTheme"
6-
import type { ThemedStyle } from "app/theme"
5+
import { useAppTheme } from "@/utils/useAppTheme"
6+
import type { ThemedStyle } from "@/theme"
77

88
const sadFace = require("../../assets/images/sad-face.png")
99

boilerplate/app/components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { $styles } from "../theme"
1212
import { ExtendedEdge, useSafeAreaInsetsStyle } from "../utils/useSafeAreaInsetsStyle"
1313
import { Icon, IconTypes } from "./Icon"
1414
import { Text, TextProps } from "./Text"
15-
import { useAppTheme } from "app/utils/useAppTheme"
16-
import type { ThemedStyle } from "app/theme"
15+
import { useAppTheme } from "@/utils/useAppTheme"
16+
import type { ThemedStyle } from "@/theme"
1717

1818
export interface HeaderProps {
1919
/**

boilerplate/app/components/ListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
import { $styles } from "../theme"
1111
import { Icon, IconTypes } from "./Icon"
1212
import { Text, TextProps } from "./Text"
13-
import type { ThemedStyle } from "app/theme"
14-
import { useAppTheme } from "app/utils/useAppTheme"
13+
import type { ThemedStyle } from "@/theme"
14+
import { useAppTheme } from "@/utils/useAppTheme"
1515

1616
export interface ListItemProps extends TouchableOpacityProps {
1717
/**

boilerplate/app/components/ListView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ForwardedRef, forwardRef, PropsWithoutRef, ReactElement, RefObject } from "react"
22
import { FlatList } from "react-native"
3-
import { isRTL } from "app/i18n"
3+
import { isRTL } from "@/i18n"
44
import { FlashList, FlashListProps } from "@shopify/flash-list"
55

66
export type ListViewRef<T> = FlashList<T> | FlatList<T>

boilerplate/app/components/Screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { $styles } from "../theme"
1616
import { ExtendedEdge, useSafeAreaInsetsStyle } from "../utils/useSafeAreaInsetsStyle"
1717
import { KeyboardAwareScrollView } from "react-native-keyboard-controller"
18-
import { useAppTheme } from "app/utils/useAppTheme"
18+
import { useAppTheme } from "@/utils/useAppTheme"
1919

2020
export const DEFAULT_BOTTOM_OFFSET = 50
2121

boilerplate/app/components/Text.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import i18n from "i18n-js"
22
import { StyleProp, Text as RNText, TextProps as RNTextProps, TextStyle } from "react-native"
33
import { isRTL, translate, TxKeyPath } from "../i18n"
4-
import type { ThemedStyle, ThemedStyleArray } from "app/theme"
5-
import { useAppTheme } from "app/utils/useAppTheme"
6-
import { typography } from "app/theme/typography"
4+
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
5+
import { useAppTheme } from "@/utils/useAppTheme"
6+
import { typography } from "@/theme/typography"
77
import { ReactNode } from "react"
88

99
type Sizes = keyof typeof $sizeStyles

boilerplate/app/components/TextField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import {
1010
ViewStyle,
1111
} from "react-native"
1212
import { isRTL, translate } from "../i18n"
13-
import type { ThemedStyle, ThemedStyleArray } from "app/theme"
13+
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
1414
import { $styles } from "../theme"
1515
import { Text, TextProps } from "./Text"
16-
import { useAppTheme } from "app/utils/useAppTheme"
16+
import { useAppTheme } from "@/utils/useAppTheme"
1717

1818
export interface TextFieldAccessoryProps {
1919
style: StyleProp<ViewStyle | TextStyle | ImageStyle>

boilerplate/app/components/Toggle/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Image, ImageStyle, Animated, StyleProp, View, ViewStyle } from "react-n
33
import { $styles } from "../../theme"
44
import { iconRegistry, IconTypes } from "../Icon"
55
import { $inputOuterBase, BaseToggleInputProps, ToggleProps, Toggle } from "./Toggle"
6-
import { useAppTheme } from "app/utils/useAppTheme"
6+
import { useAppTheme } from "@/utils/useAppTheme"
77

88
export interface CheckboxToggleProps extends Omit<ToggleProps<CheckboxInputProps>, "ToggleInput"> {
99
/**

boilerplate/app/components/Toggle/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react"
22
import { StyleProp, View, ViewStyle, Animated } from "react-native"
33
import { $styles } from "../../theme"
44
import { $inputOuterBase, BaseToggleInputProps, ToggleProps, Toggle } from "./Toggle"
5-
import { useAppTheme } from "app/utils/useAppTheme"
5+
import { useAppTheme } from "@/utils/useAppTheme"
66

77
export interface RadioToggleProps extends Omit<ToggleProps<RadioInputProps>, "ToggleInput"> {
88
/**

boilerplate/app/components/Toggle/Switch.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import {
1010
ViewStyle,
1111
} from "react-native"
1212

13-
import { $styles } from "../../theme"
14-
import { iconRegistry } from "../Icon"
15-
import { isRTL } from "app/i18n"
13+
import { $styles } from "@/theme"
14+
import { iconRegistry } from "@/components/Icon"
15+
import { isRTL } from "@/i18n"
1616
import { $inputOuterBase, BaseToggleInputProps, Toggle, ToggleProps } from "./Toggle"
17-
import { useAppTheme } from "app/utils/useAppTheme"
18-
import type { ThemedStyle } from "app/theme"
17+
import { useAppTheme } from "@/utils/useAppTheme"
18+
import type { ThemedStyle } from "@/theme"
1919

2020
export interface SwitchToggleProps extends Omit<ToggleProps<SwitchInputProps>, "ToggleInput"> {
2121
/**

boilerplate/app/components/Toggle/Toggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
} from "react-native"
1515
import { $styles } from "../../theme"
1616
import { Text, TextProps } from "../Text"
17-
import { useAppTheme } from "app/utils/useAppTheme"
18-
import type { ThemedStyle } from "app/theme"
17+
import { useAppTheme } from "@/utils/useAppTheme"
18+
import type { ThemedStyle } from "@/theme"
1919

2020
export interface ToggleProps<T> extends Omit<TouchableOpacityProps, "style"> {
2121
/**

boilerplate/app/devtools/ReactotronConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { ArgType } from "reactotron-core-client"
99
import { mst } from "reactotron-mst" // @mst remove-current-line
1010
import mmkvPlugin from "reactotron-react-native-mmkv"
1111

12-
import { storage, clear } from "app/utils/storage"
13-
import { goBack, resetRoot, navigate } from "app/navigators/navigationUtilities"
12+
import { storage, clear } from "@/utils/storage"
13+
import { goBack, resetRoot, navigate } from "@/navigators/navigationUtilities"
1414

1515
import { Reactotron } from "./ReactotronClient"
1616
import { ReactotronReactNative } from "reactotron-react-native"

boilerplate/app/i18n/ar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import demoAr from "./demo-ar"
1+
import demoAr from "./demo-ar" // @demo remove-current-line
22
import { Translations } from "./en"
33

44
const ar: Translations = {

boilerplate/app/i18n/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import demoEn from "./demo-en"
1+
import demoEn from "./demo-en" // @demo remove-current-line
22

33
const en = {
44
common: {

boilerplate/app/i18n/fr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import demoFr from "./demo-fr"
1+
import demoFr from "./demo-fr" // @demo remove-current-line
22
import { Translations } from "./en"
33

44
const fr: Translations = {

boilerplate/app/i18n/jp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import demoJp from "./demo-jp"
1+
import demoJp from "./demo-jp" // @demo remove-current-line
22
import { Translations } from "./en"
33

44
const jp: Translations = {

boilerplate/app/i18n/ko.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import demoKo from "./demo-ko"
1+
import demoKo from "./demo-ko" // @demo remove-current-line
22
import { Translations } from "./en"
33

44
const ko: Translations = {

boilerplate/app/navigators/AppNavigator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import {
1010
} from "@react-navigation/native"
1111
import { createNativeStackNavigator, NativeStackScreenProps } from "@react-navigation/native-stack"
1212
import { observer } from "mobx-react-lite" // @mst remove-current-line
13-
import * as Screens from "app/screens"
13+
import * as Screens from "@/screens"
1414
import Config from "../config"
1515
import { useStores } from "../models" // @demo remove-current-line
1616
import { DemoNavigator, DemoTabParamList } from "./DemoNavigator" // @demo remove-current-line
1717
import { navigationRef, useBackButtonHandler } from "./navigationUtilities"
18-
import { useAppTheme, useThemeProvider } from "app/utils/useAppTheme"
18+
import { useAppTheme, useThemeProvider } from "@/utils/useAppTheme"
1919
import { ComponentProps } from "react"
2020

2121
/**

boilerplate/app/navigators/DemoNavigator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { Icon } from "../components"
66
import { translate } from "../i18n"
77
import { DemoCommunityScreen, DemoShowroomScreen, DemoDebugScreen } from "../screens"
88
import { DemoPodcastListScreen } from "../screens/DemoPodcastListScreen"
9-
import type { ThemedStyle } from "app/theme"
9+
import type { ThemedStyle } from "@/theme"
1010
import { AppStackParamList, AppStackScreenProps } from "./AppNavigator"
11-
import { useAppTheme } from "app/utils/useAppTheme"
11+
import { useAppTheme } from "@/utils/useAppTheme"
1212

1313
export type DemoTabParamList = {
1414
DemoCommunity: undefined

boilerplate/app/screens/DemoCommunityScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { DemoTabScreenProps } from "../navigators/DemoNavigator"
55
import { $styles } from "../theme"
66
import { openLinkInBrowser } from "../utils/openLinkInBrowser"
77
import { isRTL } from "../i18n"
8-
import type { ThemedStyle } from "app/theme"
9-
import { useAppTheme } from "app/utils/useAppTheme"
8+
import type { ThemedStyle } from "@/theme"
9+
import { useAppTheme } from "@/utils/useAppTheme"
1010

1111
const chainReactLogo = require("../../assets/images/demo/cr-logo.png")
1212
const reactNativeLiveLogo = require("../../assets/images/demo/rnl-logo.png")

boilerplate/app/screens/DemoDebugScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {
1111
} from "react-native"
1212
import { Button, ListItem, Screen, Text } from "../components"
1313
import { DemoTabScreenProps } from "../navigators/DemoNavigator"
14-
import type { ThemedStyle } from "app/theme"
14+
import type { ThemedStyle } from "@/theme"
1515
import { $styles } from "../theme"
1616
import { isRTL } from "../i18n"
1717
import { useStores } from "../models"
18-
import { useAppTheme } from "app/utils/useAppTheme"
18+
import { useAppTheme } from "@/utils/useAppTheme"
1919

2020
/**
2121
* @param {string} url - The URL to open in the browser.

boilerplate/app/screens/DemoPodcastListScreen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ import {
3030
Screen,
3131
Switch,
3232
Text,
33-
} from "app/components"
33+
} from "@/components"
3434
import { isRTL, translate } from "../i18n"
3535
import { useStores } from "../models"
3636
import { Episode } from "../models/Episode"
3737
import { DemoTabScreenProps } from "../navigators/DemoNavigator"
38-
import type { ThemedStyle } from "app/theme"
38+
import type { ThemedStyle } from "@/theme"
3939
import { $styles } from "../theme"
4040
import { delay } from "../utils/delay"
4141
import { openLinkInBrowser } from "../utils/openLinkInBrowser"
42-
import { useAppTheme } from "app/utils/useAppTheme"
42+
import { useAppTheme } from "@/utils/useAppTheme"
4343

4444
const ICON_SIZE = 14
4545

boilerplate/app/screens/DemoShowroomScreen/DemoDivider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react-native/no-inline-styles */
22
import { StyleProp, View, ViewStyle } from "react-native"
3-
import type { ThemedStyle } from "app/theme"
4-
import { useAppTheme } from "app/utils/useAppTheme"
3+
import type { ThemedStyle } from "@/theme"
4+
import { useAppTheme } from "@/utils/useAppTheme"
55

66
interface DemoDividerProps {
77
type?: "vertical" | "horizontal"

boilerplate/app/screens/DemoShowroomScreen/DemoShowroomScreen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { type ContentStyle } from "@shopify/flash-list"
66
import { ListItem, ListView, ListViewRef, Screen, Text } from "../../components"
77
import { TxKeyPath, isRTL, translate } from "../../i18n"
88
import { DemoTabParamList, DemoTabScreenProps } from "../../navigators/DemoNavigator"
9-
import type { Theme, ThemedStyle } from "app/theme"
10-
import { $styles } from "app/theme"
9+
import type { Theme, ThemedStyle } from "@/theme"
10+
import { $styles } from "@/theme"
1111
import { useSafeAreaInsetsStyle } from "../../utils/useSafeAreaInsetsStyle"
1212
import * as Demos from "./demos"
1313
import { DrawerIconButton } from "./DrawerIconButton"
1414
import SectionListWithKeyboardAwareScrollView from "./SectionListWithKeyboardAwareScrollView"
15-
import { useAppTheme } from "app/utils/useAppTheme"
15+
import { useAppTheme } from "@/utils/useAppTheme"
1616

1717
const logo = require("../../../assets/images/logo.png")
1818

boilerplate/app/screens/DemoShowroomScreen/DemoUseCase.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ReactNode } from "react"
22
import { TextStyle, View, ViewStyle } from "react-native"
3-
import { TxKeyPath, translate } from "app/i18n"
3+
import { TxKeyPath, translate } from "@/i18n"
44
import { Text } from "../../components"
5-
import type { ThemedStyle } from "app/theme"
6-
import { useAppTheme } from "app/utils/useAppTheme"
7-
import { $styles } from "app/theme"
5+
import type { ThemedStyle } from "@/theme"
6+
import { useAppTheme } from "@/utils/useAppTheme"
7+
import { $styles } from "@/theme"
88

99
interface DemoUseCaseProps {
1010
name: TxKeyPath

boilerplate/app/screens/DemoShowroomScreen/DrawerIconButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Pressable, PressableProps, ViewStyle, Platform } from "react-native"
22
import Animated, { interpolate, interpolateColor, useAnimatedStyle } from "react-native-reanimated"
33
import { useDrawerProgress } from "react-native-drawer-layout"
44
import { isRTL } from "../../i18n"
5-
import { useAppTheme } from "app/utils/useAppTheme"
5+
import { useAppTheme } from "@/utils/useAppTheme"
66

77
interface DrawerIconButtonProps extends PressableProps {}
88

boilerplate/app/screens/DemoShowroomScreen/SectionListWithKeyboardAwareScrollView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEFAULT_BOTTOM_OFFSET } from "app/components"
1+
import { DEFAULT_BOTTOM_OFFSET } from "@/components"
22
import { forwardRef, ReactElement, ReactNode, useCallback } from "react"
33
import { ScrollViewProps, SectionList, SectionListProps } from "react-native"
44
import { KeyboardAwareScrollView } from "react-native-keyboard-controller"

boilerplate/app/screens/DemoShowroomScreen/demos/DemoAutoImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { $styles } from "../../../theme"
66
import { Demo } from "../DemoShowroomScreen"
77
import { DemoDivider } from "../DemoDivider"
88
import { DemoUseCase } from "../DemoUseCase"
9-
import { translate } from "app/i18n"
9+
import { translate } from "@/i18n"
1010

1111
const $imageContainer: ViewStyle = {
1212
alignItems: "center",

boilerplate/app/screens/DemoShowroomScreen/demos/DemoButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { ThemedStyle } from "../../../theme"
55
import { Demo } from "../DemoShowroomScreen"
66
import { DemoDivider } from "../DemoDivider"
77
import { DemoUseCase } from "../DemoUseCase"
8-
import { translate } from "app/i18n"
8+
import { translate } from "@/i18n"
99

1010
const $iconStyle: ImageStyle = { width: 30, height: 30 }
1111
const $customButtonStyle: ThemedStyle<ViewStyle> = ({ colors }) => ({

boilerplate/app/screens/DemoShowroomScreen/demos/DemoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { $styles } from "../../../theme"
55
import { Demo } from "../DemoShowroomScreen"
66
import { DemoDivider } from "../DemoDivider"
77
import { DemoUseCase } from "../DemoUseCase"
8-
import type { ThemedStyle } from "app/theme"
8+
import type { ThemedStyle } from "@/theme"
99

1010
const $rightAlignTitle: TextStyle = {
1111
textAlign: "right",

boilerplate/app/screens/DemoShowroomScreen/demos/DemoIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { ImageStyle, TextStyle, View, ViewStyle } from "react-native"
33
import { Icon, iconRegistry, IconTypes, Text } from "../../../components"
44
import { Demo } from "../DemoShowroomScreen"
55
import { DemoUseCase } from "../DemoUseCase"
6-
import type { ThemedStyle } from "app/theme"
7-
import { $styles } from "app/theme"
6+
import type { ThemedStyle } from "@/theme"
7+
import { $styles } from "@/theme"
88

99
const $demoIconContainer: ThemedStyle<ViewStyle> = ({ spacing }) => ({
1010
padding: spacing.xs,

boilerplate/app/screens/DemoShowroomScreen/demos/DemoListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { $styles } from "../../../theme"
66
import { Demo } from "../DemoShowroomScreen"
77
import { DemoDivider } from "../DemoDivider"
88
import { DemoUseCase } from "../DemoUseCase"
9-
import { translate } from "app/i18n"
9+
import { translate } from "@/i18n"
1010

1111
const listData =
1212
`Tempor Id Ea Aliqua Pariatur Aliquip. Irure Minim Voluptate Consectetur Consequat Sint Esse Proident Irure. Nostrud Elit Veniam Nostrud Excepteur Minim Deserunt Quis Dolore Velit Nulla Irure Voluptate Tempor. Occaecat Amet Laboris Nostrud Qui Do Quis Lorem Ex Elit Fugiat Deserunt. In Pariatur Excepteur Exercitation Ex Incididunt Qui Mollit Dolor Sit Non. Culpa Officia Minim Cillum Exercitation Voluptate Proident Laboris Et Est Reprehenderit Quis Pariatur Nisi`

boilerplate/app/screens/DemoShowroomScreen/demos/DemoText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Text } from "../../../components"
33
import { Demo } from "../DemoShowroomScreen"
44
import { DemoDivider } from "../DemoDivider"
55
import { DemoUseCase } from "../DemoUseCase"
6-
import { translate } from "app/i18n"
6+
import { translate } from "@/i18n"
77

88
export const DemoText: Demo = {
99
name: "Text",

0 commit comments

Comments
 (0)