import React, { useState } from 'react';
import { View } from 'react-native';
import { BottomBar, BottomBarTabItem } from '@xrnjs/ui';
import {
IconMARobot1,
IconMAActivity1,
IconMAPicture1,
} from '../../../icons';
const bottomBarIconStyle = {
alignSelf: 'center',
justifyContent: 'center',
alignItems: 'center',
// 无论大小图标都保持同一个占用空间
width: 24,
height: 24,
};
const bottomBar: BottomBarTabItem[] = [
{
value: 1,
label: '首页',
iconRender: (color?: string) => (
),
},
{
value: 2,
label: '发现页',
iconRender: (color?: string) => (
),
},
{
value: 3,
label: '更多设置',
iconRender: (color?: string) => (
),
},
];
const BottomBarScreen = () => {
const [value1, setValue1] = useState(
(bottomBar[1] as BottomBarTabItem).value
);
return (
{
setValue1(v as number);
}}
/>
);
};
export default BottomBarScreen;