expo-bbase 1.7.1 → 1.7.2

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/dist/index.js CHANGED
@@ -37,12 +37,11 @@ __export(src_exports, {
37
37
  });
38
38
  module.exports = __toCommonJS(src_exports);
39
39
  var import_chalk = __toESM(require("chalk"));
40
- var import_commander = require("commander");
41
- var import_execa = require("execa");
42
- var import_fs_extra2 = __toESM(require("fs-extra"));
40
+ var import_prompts = __toESM(require("prompts"));
43
41
  var import_ora = __toESM(require("ora"));
44
42
  var import_path2 = __toESM(require("path"));
45
- var import_prompts = __toESM(require("prompts"));
43
+ var import_fs_extra2 = __toESM(require("fs-extra"));
44
+ var import_commander = require("commander");
46
45
 
47
46
  // src/commands/create.ts
48
47
  function registerCreateCommand(program) {
@@ -3163,6 +3162,7 @@ export default function RootLayout() {
3163
3162
 
3164
3163
  return (
3165
3164
  <ThemeProvider value={colorScheme === "dark" ? NAV_THEME.dark : NAV_THEME.light}>
3165
+ <StatusBar style={colorScheme === "dark" ? "light" : "dark"} />
3166
3166
  <Stack>
3167
3167
  <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
3168
3168
  <Stack.Screen name="+not-found" />
@@ -3178,6 +3178,7 @@ export default function RootLayout() {
3178
3178
  path: "app/(tabs)/_layout.tsx",
3179
3179
  content: `import { Tabs } from "expo-router";
3180
3180
  import { Platform } from "react-native";
3181
+ import { Ionicons } from "@expo/vector-icons";
3181
3182
 
3182
3183
  export default function TabLayout() {
3183
3184
  return (
@@ -3196,14 +3197,18 @@ export default function TabLayout() {
3196
3197
  name="index"
3197
3198
  options={{
3198
3199
  title: "Home",
3199
- tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,
3200
+ tabBarIcon: ({ color, size }) => (
3201
+ <Ionicons name="home" size={size} color={color} />
3202
+ ),
3200
3203
  }}
3201
3204
  />
3202
3205
  <Tabs.Screen
3203
3206
  name="explore"
3204
3207
  options={{
3205
3208
  title: "Explore",
3206
- tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
3209
+ tabBarIcon: ({ color, size }) => (
3210
+ <Ionicons name="search" size={size} color={color} />
3211
+ ),
3207
3212
  }}
3208
3213
  />
3209
3214
  </Tabs>
@@ -3417,6 +3422,7 @@ export {};
3417
3422
  "extends": "expo/tsconfig.base",
3418
3423
  "compilerOptions": {
3419
3424
  "strict": true,
3425
+ "baseUrl": ".",
3420
3426
  "paths": {
3421
3427
  "@/*": ["./*"]
3422
3428
  }
@@ -3699,6 +3705,7 @@ function generateLoginTabsTemplates(projectName) {
3699
3705
  "",
3700
3706
  " return (",
3701
3707
  ' <ThemeProvider value={colorScheme === "dark" ? NAV_THEME.dark : NAV_THEME.light}>',
3708
+ ' <StatusBar style={colorScheme === "dark" ? "light" : "dark"} />',
3702
3709
  " <Stack>",
3703
3710
  ' <Stack.Screen name="login" options={{ headerShown: false }} />',
3704
3711
  ' <Stack.Screen name="(tabs)" options={{ headerShown: false }} />',
@@ -3734,6 +3741,7 @@ function generateLoginTabsTemplates(projectName) {
3734
3741
  content: lines(
3735
3742
  'import { Tabs } from "expo-router";',
3736
3743
  'import { Platform } from "react-native";',
3744
+ 'import { Ionicons } from "@expo/vector-icons";',
3737
3745
  "",
3738
3746
  "export default function TabLayout() {",
3739
3747
  " return (",
@@ -3752,22 +3760,27 @@ function generateLoginTabsTemplates(projectName) {
3752
3760
  ' name="index"',
3753
3761
  " options={{",
3754
3762
  ' title: "Home",',
3755
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,',
3763
+ " tabBarIcon: ({ color, size }) => (",
3764
+ ' <Ionicons name="home" size={size} color={color} />',
3765
+ " ),",
3756
3766
  " }}",
3757
3767
  " />",
3758
3768
  " <Tabs.Screen",
3759
3769
  ' name="explore"',
3760
3770
  " options={{",
3761
3771
  ' title: "Explore",',
3762
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />',
3772
+ " tabBarIcon: ({ color, size }) => (",
3773
+ ' <Ionicons name="search" size={size} color={color} />',
3774
+ " ),",
3763
3775
  " }}",
3764
3776
  " />",
3765
3777
  " <Tabs.Screen",
3766
3778
  ' name="mine"',
3767
3779
  " options={{",
3768
3780
  ' title: "Mine",',
3769
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="chevron.right" color={color} />',
3770
- " }}",
3781
+ " tabBarIcon: ({ color, size }) => (",
3782
+ ' <Ionicons name="person" size={size} color={color} />',
3783
+ " ),",
3771
3784
  " />",
3772
3785
  " </Tabs>",
3773
3786
  " );",
@@ -4186,7 +4199,8 @@ function generateBasePackageJson(projectName) {
4186
4199
  }
4187
4200
 
4188
4201
  // src/index.ts
4189
- var CLI_VERSION = "1.7.1";
4202
+ var import_execa = require("execa");
4203
+ var CLI_VERSION = "1.7.2";
4190
4204
  var CONFIG_FILE = ".expo-bbase.json";
4191
4205
  async function run() {
4192
4206
  const program = new import_commander.Command();