expo-bbase 1.7.1 → 1.7.3

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
@@ -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
  }
@@ -3734,6 +3740,7 @@ function generateLoginTabsTemplates(projectName) {
3734
3740
  content: lines(
3735
3741
  'import { Tabs } from "expo-router";',
3736
3742
  'import { Platform } from "react-native";',
3743
+ 'import { Ionicons } from "@expo/vector-icons";',
3737
3744
  "",
3738
3745
  "export default function TabLayout() {",
3739
3746
  " return (",
@@ -3752,21 +3759,27 @@ function generateLoginTabsTemplates(projectName) {
3752
3759
  ' name="index"',
3753
3760
  " options={{",
3754
3761
  ' title: "Home",',
3755
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,',
3762
+ " tabBarIcon: ({ color, size }) => (",
3763
+ ' <Ionicons name="home" size={size} color={color} />',
3764
+ " ),",
3756
3765
  " }}",
3757
3766
  " />",
3758
3767
  " <Tabs.Screen",
3759
3768
  ' name="explore"',
3760
3769
  " options={{",
3761
3770
  ' title: "Explore",',
3762
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />',
3771
+ " tabBarIcon: ({ color, size }) => (",
3772
+ ' <Ionicons name="search" size={size} color={color} />',
3773
+ " ),",
3763
3774
  " }}",
3764
3775
  " />",
3765
3776
  " <Tabs.Screen",
3766
3777
  ' name="mine"',
3767
3778
  " options={{",
3768
3779
  ' title: "Mine",',
3769
- ' tabBarIcon: ({ color }) => <IconSymbol size={28} name="chevron.right" color={color} />',
3780
+ " tabBarIcon: ({ color, size }) => (",
3781
+ ' <Ionicons name="person" size={size} color={color} />',
3782
+ " ),",
3770
3783
  " }}",
3771
3784
  " />",
3772
3785
  " </Tabs>",
@@ -4186,7 +4199,7 @@ function generateBasePackageJson(projectName) {
4186
4199
  }
4187
4200
 
4188
4201
  // src/index.ts
4189
- var CLI_VERSION = "1.7.1";
4202
+ var CLI_VERSION = "1.7.3";
4190
4203
  var CONFIG_FILE = ".expo-bbase.json";
4191
4204
  async function run() {
4192
4205
  const program = new import_commander.Command();