修正
This commit is contained in:
27
components/Menu/SimpleDot.tsx
Normal file
27
components/Menu/SimpleDot.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import React, { FC } from "react";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import { TouchableOpacity } from "react-native";
|
||||
type SimpleDotProps = {
|
||||
active: boolean;
|
||||
onPress: () => void;
|
||||
};
|
||||
export const SimpleDot: FC<SimpleDotProps> = (props) => {
|
||||
const { active, onPress } = props;
|
||||
return (
|
||||
<TouchableOpacity
|
||||
style={{
|
||||
width: 20,
|
||||
marginHorizontal: 2,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
onPress={onPress}
|
||||
>
|
||||
<Ionicons
|
||||
name="ellipse"
|
||||
size={active ? 20 : 14}
|
||||
color={active ? "#00b8ff" : "#00b8ff55"}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user