@hero-design/rn 7.3.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +1997 -1123
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +2001 -1121
- package/package.json +11 -9
- package/playground/.detoxrc.json +49 -0
- package/playground/.prettierrc.json +8 -0
- package/playground/app.json +9 -0
- package/playground/babel.config.js +63 -0
- package/playground/e2e/config.json +9 -0
- package/playground/e2e/environment.js +23 -0
- package/playground/e2e/firstTest.e2e.js +16 -0
- package/{expoEntry.js → playground/expoEntry.js} +1 -1
- package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
- package/playground/fonts/hero-icons.ttf +0 -0
- package/playground/index.js +7 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +9 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +75 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +6 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +21 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +85 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +3 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +8 -0
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +40 -0
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +16 -0
- package/playground/ios/MobileHeroDesignPlayground/main.m +10 -0
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +4 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +515 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +88 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +10 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/playground/ios/Podfile +49 -0
- package/playground/ios/Podfile.lock +478 -0
- package/playground/ios/Podfile.properties.json +3 -0
- package/{metro.config.js → playground/metro.config.js} +10 -2
- package/playground/package.json +63 -0
- package/playground/{index.tsx → src/App.tsx} +57 -29
- package/playground/{components → src}/Avatar.tsx +1 -1
- package/playground/{components → src}/Badge.tsx +1 -1
- package/playground/{components → src}/BottomNavigation.tsx +1 -1
- package/playground/src/BottomSheet.tsx +43 -0
- package/playground/src/Button.tsx +170 -0
- package/playground/{components/Button.tsx → src/Button.tsx~origin_master} +0 -0
- package/playground/{components → src}/Card.tsx +1 -1
- package/playground/{components → src}/Collapse.tsx +1 -1
- package/playground/src/ContentNavigator.tsx +65 -0
- package/playground/{components → src}/Divider.tsx +1 -1
- package/playground/{components → src}/Drawer.tsx +1 -1
- package/playground/{components → src}/FAB.tsx +1 -1
- package/playground/{components → src}/Icon.tsx +7 -3
- package/playground/{components → src}/IconButton.tsx +12 -1
- package/playground/{components → src}/Progress.tsx +1 -1
- package/playground/src/Radio.tsx +25 -0
- package/playground/src/SectionHeading.tsx +68 -0
- package/playground/src/Spinner.tsx +19 -0
- package/playground/{components → src}/Tabs.tsx +1 -1
- package/playground/{components → src}/Tag.tsx +1 -1
- package/playground/src/TextInput.tsx +14 -0
- package/playground/{components → src}/Typography.tsx +1 -1
- package/playground/src/emotion.d.ts +7 -0
- package/playground/tsconfig.json +21 -0
- package/src/components/BottomSheet/Footer.tsx +19 -0
- package/src/components/BottomSheet/Header.tsx +49 -0
- package/src/components/BottomSheet/StyledBottomSheet.tsx +75 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +531 -0
- package/src/components/BottomSheet/__tests__/index.spec.tsx +107 -0
- package/src/components/BottomSheet/index.tsx +171 -0
- package/src/components/Button/IconButton.tsx +11 -1
- package/src/components/Card/index.tsx +1 -1
- package/src/components/Collapse/StyledCollapse.tsx +11 -2
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +36 -31
- package/src/components/Collapse/__tests__/index.spec.tsx +1 -13
- package/src/components/Collapse/index.tsx +20 -50
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +15 -0
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +19 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +43 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +217 -0
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +74 -0
- package/src/components/ContentNavigator/index.tsx +65 -0
- package/src/components/Icon/HeroIcon/index.tsx +13 -2
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +6 -0
- package/src/components/Icon/index.tsx +8 -1
- package/src/components/Radio/Radio.tsx +51 -0
- package/src/components/Radio/RadioGroup.tsx +50 -0
- package/src/components/Radio/StyledRadio.tsx +42 -0
- package/src/components/Radio/__tests__/Radio.spec.tsx +38 -0
- package/src/components/Radio/__tests__/RadioGroup.spec.tsx +36 -0
- package/src/components/Radio/__tests__/StyledRadio.spec.tsx +43 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +160 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +248 -0
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +124 -0
- package/src/components/Radio/index.tsx +5 -0
- package/src/components/SectionHeading/StyledHeading.tsx +24 -0
- package/src/components/SectionHeading/__tests__/StyledHeading.tsx +28 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.tsx.snap +48 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +208 -0
- package/src/components/SectionHeading/__tests__/index.spec.tsx +39 -0
- package/src/components/SectionHeading/index.tsx +93 -0
- package/src/components/Spinner/AnimatedSpinner.tsx +55 -0
- package/src/components/Spinner/StyledSpinner.tsx +59 -0
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +11 -0
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +56 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +118 -0
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +235 -0
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +141 -0
- package/src/components/Spinner/__tests__/index.spec.tsx +12 -0
- package/src/components/Spinner/index.tsx +22 -0
- package/src/components/TextInput/StyledTextInput.tsx +34 -0
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +33 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +88 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +16 -0
- package/src/components/TextInput/index.tsx +61 -0
- package/src/index.ts +12 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +95 -0
- package/src/theme/components/bottomSheet.ts +34 -0
- package/src/theme/components/contentNavigator.ts +11 -0
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/radio.ts +34 -0
- package/src/theme/components/spinner.ts +21 -0
- package/src/theme/components/textInput.ts +32 -0
- package/src/theme/global/borders.ts +6 -0
- package/src/theme/global/colors.ts +1 -0
- package/src/theme/index.ts +22 -7
- package/tsconfig.json +11 -3
- package/types/components/Avatar/StyledAvatar.d.ts +45 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +1 -0
- package/types/components/Avatar/index.d.ts +25 -0
- package/types/components/Badge/Status.d.ts +24 -0
- package/types/components/Badge/StyledBadge.d.ts +27 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/types/components/Badge/index.d.ts +32 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/Footer.d.ts +6 -0
- package/types/components/BottomSheet/Header.d.ts +8 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +46 -0
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +1 -0
- package/types/components/BottomSheet/index.d.ts +51 -0
- package/types/components/Button/Button.d.ts +57 -0
- package/types/components/Button/IconButton.d.ts +38 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +19 -0
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +26 -0
- package/types/components/Button/StyledButton.d.ts +39 -0
- package/types/components/Button/__tests__/Button.spec.d.ts +1 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +1 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +1 -0
- package/types/components/Button/index.d.ts +8 -0
- package/types/components/Card/StyledCard.d.ts +16 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/types/components/Card/__tests__/index.spec.d.ts +1 -0
- package/types/components/Card/index.d.ts +22 -0
- package/types/components/Collapse/StyledCollapse.d.ts +25 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/types/components/Collapse/index.d.ts +19 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +12 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +1 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +1 -0
- package/types/components/ContentNavigator/index.d.ts +33 -0
- package/types/components/Divider/StyledDivider.d.ts +12 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/types/components/Divider/index.d.ts +21 -0
- package/types/components/Drawer/StyledDrawer.d.ts +24 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/types/components/Drawer/index.d.ts +25 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +29 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +12 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/types/components/FAB/ActionGroup/index.d.ts +34 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/types/components/FAB/FAB.d.ts +34 -0
- package/types/components/FAB/StyledFAB.d.ts +19 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/types/components/FAB/index.d.ts +4 -0
- package/types/components/Icon/HeroIcon/index.d.ts +12 -0
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/types/components/Icon/index.d.ts +27 -0
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/components/Progress/ProgressBar.d.ts +18 -0
- package/types/components/Progress/ProgressCircle.d.ts +18 -0
- package/types/components/Progress/StyledProgressBar.d.ts +17 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +37 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
- package/types/components/Progress/index.d.ts +5 -0
- package/types/components/Progress/types.d.ts +1 -0
- package/types/components/Radio/Radio.d.ts +26 -0
- package/types/components/Radio/RadioGroup.d.ts +29 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/components/Radio/__tests__/Radio.spec.d.ts +1 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +1 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +1 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +1 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +1 -0
- package/types/components/SectionHeading/index.d.ts +39 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -0
- package/types/components/Spinner/StyledSpinner.d.ts +30 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +10 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +60 -0
- package/types/components/Tabs/StyledTabs.d.ts +54 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/types/components/Tabs/index.d.ts +54 -0
- package/types/components/Tabs/utils.d.ts +2 -0
- package/types/components/Tag/StyledTag.d.ts +19 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/types/components/Tag/index.d.ts +21 -0
- package/types/components/TextInput/StyledTextInput.d.ts +22 -0
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +1 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +1 -0
- package/types/components/TextInput/index.d.ts +26 -0
- package/types/components/Typography/Text/StyledText.d.ts +12 -0
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/types/components/Typography/Text/index.d.ts +30 -0
- package/types/components/Typography/index.d.ts +6 -0
- package/types/index.d.ts +25 -0
- package/types/playground/components/Avatar.d.ts +0 -0
- package/types/playground/components/Collapse.d.ts +0 -0
- package/types/playground/components/Drawer.d.ts +0 -0
- package/types/playground/components/IconButton.d.ts +0 -0
- package/types/playground/components/Progress.d.ts +0 -0
- package/types/playground/components/Tag.d.ts +0 -0
- package/types/src/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/src/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Avatar/index.d.ts +0 -0
- package/types/src/components/Badge/Status.d.ts +0 -0
- package/types/src/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/src/components/Button/Button.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/src/components/Button/StyledButton.d.ts +0 -0
- package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/src/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/src/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Collapse/index.d.ts +0 -0
- package/types/src/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/src/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Drawer/index.d.ts +0 -0
- package/types/src/components/Progress/ProgressBar.d.ts +0 -0
- package/types/src/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/src/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/src/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/src/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Progress/index.d.ts +0 -0
- package/types/src/components/Progress/types.d.ts +0 -0
- package/types/src/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/src/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/src/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/src/components/Tabs/utils.d.ts +0 -0
- package/types/src/components/Tag/StyledTag.d.ts +0 -0
- package/types/src/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/src/components/Tag/index.d.ts +0 -0
- package/types/src/theme/components/avatar.d.ts +0 -0
- package/types/src/theme/components/button.d.ts +0 -0
- package/types/src/theme/components/drawer.d.ts +0 -0
- package/types/src/theme/components/progress.d.ts +0 -0
- package/types/src/theme/components/tag.d.ts +0 -0
- package/types/src/utils/hooks.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +3 -0
- package/types/theme/__tests__/index.spec.d.ts +1 -0
- package/types/theme/components/avatar.d.ts +32 -0
- package/types/theme/components/badge.d.ts +29 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/bottomSheet.d.ts +29 -0
- package/types/theme/components/button.d.ts +37 -0
- package/types/theme/components/card.d.ts +10 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/theme/components/divider.d.ts +17 -0
- package/types/theme/components/drawer.d.ts +21 -0
- package/types/theme/components/fab.d.ts +51 -0
- package/types/theme/components/icon.d.ts +20 -0
- package/types/theme/components/progress.d.ts +21 -0
- package/types/theme/components/radio.d.ts +25 -0
- package/types/theme/components/spinner.d.ts +15 -0
- package/types/theme/components/tabs.d.ts +27 -0
- package/types/theme/components/tag.d.ts +30 -0
- package/types/theme/components/textInput.d.ts +24 -0
- package/types/theme/components/typography.d.ts +26 -0
- package/types/theme/global/borders.d.ts +14 -0
- package/types/theme/global/colors.d.ts +32 -0
- package/types/theme/global/index.d.ts +42 -0
- package/types/theme/global/scale.d.ts +9 -0
- package/types/theme/global/space.d.ts +13 -0
- package/types/theme/global/typography.d.ts +21 -0
- package/types/theme/index.d.ts +45 -0
- package/types/types.d.ts +5 -0
- package/types/utils/__tests__/scale.spec.d.ts +1 -0
- package/types/utils/helpers.d.ts +2 -0
- package/types/utils/hooks.d.ts +1 -0
- package/types/utils/scale.d.ts +3 -0
- package/app.json +0 -8
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
|
-
"
|
|
7
|
+
"react-native": "src/index.ts",
|
|
8
|
+
"types": "types/index.d.ts",
|
|
8
9
|
"scripts": {
|
|
9
|
-
"lint": "eslint src
|
|
10
|
+
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --ignore-path ../../.gitignore",
|
|
10
11
|
"type-check": "tsc --noEmit",
|
|
11
12
|
"dev": "expo start",
|
|
12
13
|
"test": "jest --runInBand",
|
|
@@ -15,12 +16,16 @@
|
|
|
15
16
|
"build:js": "rollup -c",
|
|
16
17
|
"build:types": "tsc --noEmit false --emitDeclarationOnly",
|
|
17
18
|
"build": "yarn build:js && yarn build:types",
|
|
18
|
-
"
|
|
19
|
+
"build:watch": "yarn build:js -w & yarn build:types -w",
|
|
20
|
+
"publish:npm": "yarn publish --access public",
|
|
21
|
+
"start": "expo start --dev-client",
|
|
22
|
+
"android": "expo run:android",
|
|
23
|
+
"ios": "expo run:ios"
|
|
19
24
|
},
|
|
20
25
|
"dependencies": {
|
|
21
26
|
"@emotion/native": "^11.9.3",
|
|
22
27
|
"@emotion/react": "^11.9.3",
|
|
23
|
-
"@hero-design/colors": "7.
|
|
28
|
+
"@hero-design/colors": "7.4.0"
|
|
24
29
|
},
|
|
25
30
|
"peerDependencies": {
|
|
26
31
|
"react": "17.0.2",
|
|
@@ -34,9 +39,8 @@
|
|
|
34
39
|
"@babel/preset-env": "^7.16.11",
|
|
35
40
|
"@babel/preset-react": "^7.16.7",
|
|
36
41
|
"@babel/preset-typescript": "^7.17.12",
|
|
42
|
+
"@babel/runtime": "^7.18.9",
|
|
37
43
|
"@emotion/jest": "^11.9.3",
|
|
38
|
-
"@react-navigation/native": "^6.0.10",
|
|
39
|
-
"@react-navigation/native-stack": "^6.6.2",
|
|
40
44
|
"@rollup/plugin-babel": "^5.3.1",
|
|
41
45
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
42
46
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -58,14 +62,12 @@
|
|
|
58
62
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
59
63
|
"eslint-plugin-react": "^7.28.0",
|
|
60
64
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
61
|
-
"expo": "^44.0.6",
|
|
62
65
|
"jest": "^27.3.1",
|
|
63
66
|
"prettier": "^2.5.1",
|
|
64
67
|
"react": "17.0.2",
|
|
65
68
|
"react-native": "0.65.1",
|
|
66
69
|
"react-native-pager-view": "^5.4.25",
|
|
67
70
|
"react-native-safe-area-context": "^4.2.5",
|
|
68
|
-
"react-native-screens": "^3.13.1",
|
|
69
71
|
"react-native-vector-icons": "^9.1.0",
|
|
70
72
|
"react-test-renderer": "17.0.2",
|
|
71
73
|
"rollup": "^2.68.0",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testRunner": "jest",
|
|
3
|
+
"runnerConfig": "e2e/config.json",
|
|
4
|
+
"skipLegacyWorkersInjection": true,
|
|
5
|
+
"apps": {
|
|
6
|
+
"ios": {
|
|
7
|
+
"type": "ios.app",
|
|
8
|
+
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY"
|
|
9
|
+
},
|
|
10
|
+
"android": {
|
|
11
|
+
"type": "android.apk",
|
|
12
|
+
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"devices": {
|
|
16
|
+
"simulator": {
|
|
17
|
+
"type": "ios.simulator",
|
|
18
|
+
"device": {
|
|
19
|
+
"type": "iPhone 11"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"emulator": {
|
|
23
|
+
"type": "android.emulator",
|
|
24
|
+
"device": {
|
|
25
|
+
"avdName": "Pixel_3a_API_30_x86"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"configurations": {
|
|
30
|
+
"ios.sim.debug": {
|
|
31
|
+
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/MobileHeroDesignPlayground.app",
|
|
32
|
+
"build": "E2E_TEST=true xcodebuild -workspace ios/MobileHeroDesignPlayground.xcworkspace -configuration Debug -scheme MobileHeroDesignPlayground -derivedDataPath ios/build -sdk iphonesimulator -verbose",
|
|
33
|
+
"type": "ios.simulator",
|
|
34
|
+
"device": {
|
|
35
|
+
"type": "iPhone 13",
|
|
36
|
+
"os": "iOS 15.4"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"ios.sim.release": {
|
|
40
|
+
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/MobileHeroDesignPlayground.app",
|
|
41
|
+
"build": "E2E_TEST=true xcodebuild -workspace ios/MobileHeroDesignPlayground.xcworkspace -configuration Release -scheme MobileHeroDesignPlayground -derivedDataPath ios/build -sdk iphonesimulator -verbose",
|
|
42
|
+
"type": "ios.simulator",
|
|
43
|
+
"device": {
|
|
44
|
+
"type": "iPhone 13",
|
|
45
|
+
"os": "iOS 15.4"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
function isE2ETest() {
|
|
4
|
+
return process.env.E2E_TEST === 'true';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
module.exports = api => {
|
|
8
|
+
const babelEnv = api.env();
|
|
9
|
+
const plugins = [];
|
|
10
|
+
const presets = [];
|
|
11
|
+
|
|
12
|
+
// resolve issue TypeError: Class constructor DetoxCircusEnvironment cannot be invoked without 'new'
|
|
13
|
+
if (babelEnv === 'test') {
|
|
14
|
+
presets.push(['@babel/preset-env']);
|
|
15
|
+
plugins.push(['@babel/plugin-transform-runtime']);
|
|
16
|
+
} else {
|
|
17
|
+
presets.push(['module:metro-react-native-babel-preset']);
|
|
18
|
+
presets.push(['babel-preset-expo']);
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
presets: ['@babel/preset-typescript', ...presets],
|
|
22
|
+
plugins: [
|
|
23
|
+
...plugins,
|
|
24
|
+
[
|
|
25
|
+
'module-resolver',
|
|
26
|
+
{
|
|
27
|
+
alias: {
|
|
28
|
+
'^react$': require.resolve('react', {
|
|
29
|
+
paths: [path.join(__dirname, './')],
|
|
30
|
+
}),
|
|
31
|
+
'^react-native$': require.resolve('react-native', {
|
|
32
|
+
paths: [path.join(__dirname, './')],
|
|
33
|
+
}),
|
|
34
|
+
'^react-native/(.+)': ([, name]) =>
|
|
35
|
+
require.resolve(`react-native/${name}`, {
|
|
36
|
+
paths: [path.join(__dirname, './')],
|
|
37
|
+
}),
|
|
38
|
+
'react-native-safe-area-context': require.resolve(
|
|
39
|
+
'react-native-safe-area-context',
|
|
40
|
+
{
|
|
41
|
+
paths: [path.join(__dirname, './')],
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
},
|
|
45
|
+
extensions: [
|
|
46
|
+
'.ios.js',
|
|
47
|
+
'.ios.ts',
|
|
48
|
+
'.ios.tsx',
|
|
49
|
+
'.android.js',
|
|
50
|
+
'.android.ts',
|
|
51
|
+
'.android.tsx',
|
|
52
|
+
'.native.js',
|
|
53
|
+
'.native.ts',
|
|
54
|
+
'.native.tsx',
|
|
55
|
+
'.js',
|
|
56
|
+
'.ts',
|
|
57
|
+
'.tsx',
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
],
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const {
|
|
2
|
+
DetoxCircusEnvironment,
|
|
3
|
+
SpecReporter,
|
|
4
|
+
WorkerAssignReporter,
|
|
5
|
+
} = require('detox/runners/jest-circus');
|
|
6
|
+
|
|
7
|
+
class CustomDetoxEnvironment extends DetoxCircusEnvironment {
|
|
8
|
+
constructor(config, context) {
|
|
9
|
+
super(config, context);
|
|
10
|
+
|
|
11
|
+
// Can be safely removed, if you are content with the default value (=300000ms)
|
|
12
|
+
this.initTimeout = 300000;
|
|
13
|
+
|
|
14
|
+
// This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level.
|
|
15
|
+
// This is strictly optional.
|
|
16
|
+
this.registerListeners({
|
|
17
|
+
SpecReporter,
|
|
18
|
+
WorkerAssignReporter,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = CustomDetoxEnvironment;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
describe('Example', () => {
|
|
2
|
+
beforeAll(async () => {
|
|
3
|
+
await device.launchApp();
|
|
4
|
+
});
|
|
5
|
+
|
|
6
|
+
beforeEach(async () => {
|
|
7
|
+
await device.reloadReactNative();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should go to Badge screen', async () => {
|
|
11
|
+
await waitFor(element(by.label('Badge')))
|
|
12
|
+
.toExist()
|
|
13
|
+
.withTimeout(60000);
|
|
14
|
+
await element(by.label('Badge')).tap();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#import "AppDelegate.h"
|
|
2
|
+
|
|
3
|
+
#import <React/RCTBridge.h>
|
|
4
|
+
#import <React/RCTBundleURLProvider.h>
|
|
5
|
+
#import <React/RCTRootView.h>
|
|
6
|
+
#import <React/RCTLinkingManager.h>
|
|
7
|
+
#import <React/RCTConvert.h>
|
|
8
|
+
|
|
9
|
+
#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
|
|
10
|
+
#import <FlipperKit/FlipperClient.h>
|
|
11
|
+
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
|
12
|
+
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
|
|
13
|
+
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
|
|
14
|
+
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
|
|
15
|
+
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
|
|
16
|
+
|
|
17
|
+
static void InitializeFlipper(UIApplication *application) {
|
|
18
|
+
FlipperClient *client = [FlipperClient sharedClient];
|
|
19
|
+
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
|
|
20
|
+
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
|
|
21
|
+
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
|
|
22
|
+
[client addPlugin:[FlipperKitReactPlugin new]];
|
|
23
|
+
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
|
|
24
|
+
[client start];
|
|
25
|
+
}
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
@implementation AppDelegate
|
|
29
|
+
|
|
30
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
31
|
+
{
|
|
32
|
+
#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
|
|
33
|
+
InitializeFlipper(application);
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
|
|
37
|
+
RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];
|
|
38
|
+
rootView.backgroundColor = [UIColor whiteColor];
|
|
39
|
+
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
|
40
|
+
UIViewController *rootViewController = [self.reactDelegate createRootViewController];
|
|
41
|
+
rootViewController.view = rootView;
|
|
42
|
+
self.window.rootViewController = rootViewController;
|
|
43
|
+
[self.window makeKeyAndVisible];
|
|
44
|
+
|
|
45
|
+
[super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
46
|
+
|
|
47
|
+
return YES;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
|
|
51
|
+
{
|
|
52
|
+
// If you'd like to export some custom RCTBridgeModules, add them here!
|
|
53
|
+
return @[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
|
|
57
|
+
#ifdef DEBUG
|
|
58
|
+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
|
59
|
+
#else
|
|
60
|
+
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
61
|
+
#endif
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Linking API
|
|
65
|
+
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
|
|
66
|
+
return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Universal Links
|
|
70
|
+
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
|
|
71
|
+
BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
|
|
72
|
+
return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@end
|
package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "iphone",
|
|
5
|
+
"size" : "29x29",
|
|
6
|
+
"scale" : "2x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "iphone",
|
|
10
|
+
"size" : "29x29",
|
|
11
|
+
"scale" : "3x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"idiom" : "iphone",
|
|
15
|
+
"size" : "40x40",
|
|
16
|
+
"scale" : "2x"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"idiom" : "iphone",
|
|
20
|
+
"size" : "40x40",
|
|
21
|
+
"scale" : "3x"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"idiom" : "iphone",
|
|
25
|
+
"size" : "60x60",
|
|
26
|
+
"scale" : "2x"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"idiom" : "iphone",
|
|
30
|
+
"size" : "60x60",
|
|
31
|
+
"scale" : "3x"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info" : {
|
|
35
|
+
"version" : 1,
|
|
36
|
+
"author" : "expo"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images": [
|
|
3
|
+
{
|
|
4
|
+
"idiom": "universal",
|
|
5
|
+
"filename": "image.png",
|
|
6
|
+
"scale": "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom": "universal",
|
|
10
|
+
"scale": "2x"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idiom": "universal",
|
|
14
|
+
"scale": "3x"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"info": {
|
|
18
|
+
"version": 1,
|
|
19
|
+
"author": "expo"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>Mobile Hero Design Playground</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>$(PRODUCT_NAME)</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>7.2.2</string>
|
|
21
|
+
<key>CFBundleSignature</key>
|
|
22
|
+
<string>????</string>
|
|
23
|
+
<key>CFBundleURLTypes</key>
|
|
24
|
+
<array>
|
|
25
|
+
<dict>
|
|
26
|
+
<key>CFBundleURLSchemes</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>com.thinkei.Mobile-Hero-Design-Playground</string>
|
|
29
|
+
</array>
|
|
30
|
+
</dict>
|
|
31
|
+
</array>
|
|
32
|
+
<key>CFBundleVersion</key>
|
|
33
|
+
<string>1</string>
|
|
34
|
+
<key>LSRequiresIPhoneOS</key>
|
|
35
|
+
<true/>
|
|
36
|
+
<key>NSAppTransportSecurity</key>
|
|
37
|
+
<dict>
|
|
38
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
39
|
+
<true/>
|
|
40
|
+
<key>NSExceptionDomains</key>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>localhost</key>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
45
|
+
<true/>
|
|
46
|
+
</dict>
|
|
47
|
+
</dict>
|
|
48
|
+
</dict>
|
|
49
|
+
<key>UIAppFonts</key>
|
|
50
|
+
<array>
|
|
51
|
+
<string>be-vietnam-pro-light.ttf</string>
|
|
52
|
+
<string>be-vietnam-pro-regular.ttf</string>
|
|
53
|
+
<string>be-vietnam-pro-semibold.ttf</string>
|
|
54
|
+
<string>hero-icons.ttf</string>
|
|
55
|
+
</array>
|
|
56
|
+
<key>UILaunchStoryboardName</key>
|
|
57
|
+
<string>SplashScreen</string>
|
|
58
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
59
|
+
<array>
|
|
60
|
+
<string>armv7</string>
|
|
61
|
+
</array>
|
|
62
|
+
<key>UIRequiresFullScreen</key>
|
|
63
|
+
<false/>
|
|
64
|
+
<key>UIStatusBarStyle</key>
|
|
65
|
+
<string>UIStatusBarStyleDefault</string>
|
|
66
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
67
|
+
<array>
|
|
68
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
69
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
70
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
71
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
72
|
+
</array>
|
|
73
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
74
|
+
<array>
|
|
75
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
76
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
77
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
78
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
79
|
+
</array>
|
|
80
|
+
<key>UIUserInterfaceStyle</key>
|
|
81
|
+
<string>Light</string>
|
|
82
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
83
|
+
<false/>
|
|
84
|
+
</dict>
|
|
85
|
+
</plist>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
|
|
3
|
+
<device id="retina5_5" orientation="portrait" appearance="light"/>
|
|
4
|
+
<dependencies>
|
|
5
|
+
<deployment identifier="iOS"/>
|
|
6
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
|
|
7
|
+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
8
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
9
|
+
</dependencies>
|
|
10
|
+
<scenes>
|
|
11
|
+
<scene sceneID="EXPO-SCENE-1">
|
|
12
|
+
<objects>
|
|
13
|
+
<viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
|
|
14
|
+
<view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
|
|
15
|
+
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
|
|
16
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
17
|
+
<subviews>
|
|
18
|
+
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" insetsLayoutMarginsFromSafeArea="NO" image="SplashScreenBackground" translatesAutoresizingMaskIntoConstraints="NO" id="EXPO-SplashScreenBackground" userLabel="SplashScreenBackground">
|
|
19
|
+
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
|
|
20
|
+
</imageView>
|
|
21
|
+
</subviews>
|
|
22
|
+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
|
23
|
+
<constraints>
|
|
24
|
+
<constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="1gX-mQ-vu6"/>
|
|
25
|
+
<constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="6tX-OG-Sck"/>
|
|
26
|
+
<constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="ABX-8g-7v4"/>
|
|
27
|
+
<constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="jkI-2V-eW5"/>
|
|
28
|
+
</constraints>
|
|
29
|
+
<viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
|
|
30
|
+
</view>
|
|
31
|
+
</viewController>
|
|
32
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
33
|
+
</objects>
|
|
34
|
+
<point key="canvasLocation" x="140.625" y="129.4921875"/>
|
|
35
|
+
</scene>
|
|
36
|
+
</scenes>
|
|
37
|
+
<resources>
|
|
38
|
+
<image name="SplashScreenBackground" width="1" height="1"/>
|
|
39
|
+
</resources>
|
|
40
|
+
</document>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>EXUpdatesCheckOnLaunch</key>
|
|
6
|
+
<string>ALWAYS</string>
|
|
7
|
+
<key>EXUpdatesEnabled</key>
|
|
8
|
+
<true/>
|
|
9
|
+
<key>EXUpdatesLaunchWaitMs</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
<key>EXUpdatesSDKVersion</key>
|
|
12
|
+
<string>44.0.0</string>
|
|
13
|
+
<key>EXUpdatesURL</key>
|
|
14
|
+
<string>https://exp.host/@thinkei/Mobile-Hero-Design-Playground</string>
|
|
15
|
+
</dict>
|
|
16
|
+
</plist>
|