expo-bbase 1.7.0 → 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 +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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: () =>
|
|
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: () =>
|
|
3209
|
+
tabBarIcon: ({ color, size }) => (
|
|
3210
|
+
<Ionicons name="search" size={size} color={color} />
|
|
3211
|
+
),
|
|
3207
3212
|
}}
|
|
3208
3213
|
/>
|
|
3209
3214
|
</Tabs>
|
|
@@ -3736,6 +3741,7 @@ function generateLoginTabsTemplates(projectName) {
|
|
|
3736
3741
|
content: lines(
|
|
3737
3742
|
'import { Tabs } from "expo-router";',
|
|
3738
3743
|
'import { Platform } from "react-native";',
|
|
3744
|
+
'import { Ionicons } from "@expo/vector-icons";',
|
|
3739
3745
|
"",
|
|
3740
3746
|
"export default function TabLayout() {",
|
|
3741
3747
|
" return (",
|
|
@@ -3754,22 +3760,27 @@ function generateLoginTabsTemplates(projectName) {
|
|
|
3754
3760
|
' name="index"',
|
|
3755
3761
|
" options={{",
|
|
3756
3762
|
' title: "Home",',
|
|
3757
|
-
" tabBarIcon: () =>
|
|
3763
|
+
" tabBarIcon: ({ color, size }) => (",
|
|
3764
|
+
' <Ionicons name="home" size={size} color={color} />',
|
|
3765
|
+
" ),",
|
|
3758
3766
|
" }}",
|
|
3759
3767
|
" />",
|
|
3760
3768
|
" <Tabs.Screen",
|
|
3761
3769
|
' name="explore"',
|
|
3762
3770
|
" options={{",
|
|
3763
3771
|
' title: "Explore",',
|
|
3764
|
-
" tabBarIcon: () =>
|
|
3772
|
+
" tabBarIcon: ({ color, size }) => (",
|
|
3773
|
+
' <Ionicons name="search" size={size} color={color} />',
|
|
3774
|
+
" ),",
|
|
3765
3775
|
" }}",
|
|
3766
3776
|
" />",
|
|
3767
3777
|
" <Tabs.Screen",
|
|
3768
3778
|
' name="mine"',
|
|
3769
3779
|
" options={{",
|
|
3770
3780
|
' title: "Mine",',
|
|
3771
|
-
" tabBarIcon: () =>
|
|
3772
|
-
"
|
|
3781
|
+
" tabBarIcon: ({ color, size }) => (",
|
|
3782
|
+
' <Ionicons name="person" size={size} color={color} />',
|
|
3783
|
+
" ),",
|
|
3773
3784
|
" />",
|
|
3774
3785
|
" </Tabs>",
|
|
3775
3786
|
" );",
|
|
@@ -4189,7 +4200,7 @@ function generateBasePackageJson(projectName) {
|
|
|
4189
4200
|
|
|
4190
4201
|
// src/index.ts
|
|
4191
4202
|
var import_execa = require("execa");
|
|
4192
|
-
var CLI_VERSION = "1.7.
|
|
4203
|
+
var CLI_VERSION = "1.7.2";
|
|
4193
4204
|
var CONFIG_FILE = ".expo-bbase.json";
|
|
4194
4205
|
async function run() {
|
|
4195
4206
|
const program = new import_commander.Command();
|