react-native-spinner-datepicker
Version:
- A react native custom component of dynamic spinner Datepicker, with initial date and animated scroll to it's position. the spinner is implemented as 3 animated wheels effect.
21 lines (19 loc) • 468 B
text/typescript
import {StyleSheet} from "react-native";
const createStyle = ({height}: {height: number}) => {
return StyleSheet.create({
container: {
justifyContent: "space-between",
flexDirection: "row",
width: "100%",
height: height,
alignContent: "center",
},
item: {
fontSize: height * 0.1,
color: "gray",
fontWeight: "900",
textAlign: "center",
},
});
};
export default createStyle;