Skip to content

Commit c4250f8

Browse files
committed
chore(ui): update metro config
1 parent 1a245f3 commit c4250f8

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

apps/example/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
3+
# The following patterns were generated by expo-cli
4+
5+
expo-env.d.ts
6+
# @end expo-cli

packages/expo-atlas-ui/metro.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ if (process.env.NODE_ENV === 'development') {
4040
const { AtlasFileSource } = require('expo-atlas/build/src/data/AtlasFileSource');
4141
const filePath = path.resolve(__dirname, './fixture/expo-51-default.jsonl');
4242

43+
// To test the example app, use this instead after exporting the apps/example
44+
// const filePath = path.resolve(__dirname, '../../apps/example/.expo/atlas.jsonl');
45+
4346
global.EXPO_ATLAS_SOURCE = new AtlasFileSource(filePath);
4447
}
4548

packages/expo-atlas-ui/src/components/BundleSelectForm.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function BundleSelectForm() {
2222
const bundlesByPlatform = useMemo(() => groupBundlesByPlatform(bundles), [bundles]);
2323

2424
return (
25-
<Select value={bundle.id} onValueChange={(bundle) => router.setParams({ bundle })}>
25+
<Select open value={bundle.id} onValueChange={(bundle) => router.setParams({ bundle })}>
2626
<SelectTrigger className="!w-auto">
2727
<SelectValue placeholder="Select a fruit" />
2828
</SelectTrigger>
@@ -34,12 +34,12 @@ export function BundleSelectForm() {
3434
}
3535

3636
return (
37-
<SelectGroup key={platform}>
38-
<SelectLabel className="m-0.5 capitalize">
37+
<SelectGroup key={platform} className="my-1">
38+
<SelectLabel className="mx-1 capitalize">
3939
<PlatformName platform={platform} />
4040
</SelectLabel>
4141
{bundles.length === 0 ? (
42-
<SelectItem disabled value="none" className="italic mb-1">
42+
<SelectItem disabled value="none" className="italic" style={{ paddingTop: 0 }}>
4343
No bundle available for this platform
4444
</SelectItem>
4545
) : (

0 commit comments

Comments
 (0)