![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-month-selector
Advanced tools
This package lets you select months. It also allows you to use swipe gestures to navigate between pages.
npm install react-native-month-selector --save
yarn add react-native-month-selector
Params | Type | Default | Description |
---|---|---|---|
selectedDate | moment.Moment (a valid moment.js instance) | moment() | currently highlighted / selected month |
currentDate | moment.Moment | moment() | today's date |
maxDate | moment.Moment | moment() | the maximum date than can be shown |
minimumDate | moment.Moment | moment("01-01-2000", "DD-MM-YYYY") | the mimimum date than can be shown |
selectedBackgroundColor | string | "#000" | the color of the highlight for the seleced month |
selectedMonthTextStyle | TextStyle | { color: "#fff" } | text style for the selected month |
seperatorHeight | number | 1 | height of the separators |
seperatorColor | string | "#b6c3cb" | color of the separators |
nextIcon | JSX.Element | null | custom react component for the next button |
prevIcon | JSX.Element | null | custom react component for the prev button |
nextText | string | "Next" | custom text for the next button |
prevText | string | "Prev" | custom text for the prev button |
containerStyle | ViewStyle | null | custom style for the container |
yearTextStyle | TextStyle | null | custom style for the year text |
monthTextStyle | TextStyle | null | custom style of the text for the months |
currentMonthTextStyle | TextStyle | null | custom style for the current month text |
initialView | moment.Moment | moment() | which month should be selected initially |
onMonthTapped | (month: moment.Moment) => any | (month) => {} | function called when month is pressed |
onYearChanged | (year: moment.Moment) => any | (year) => {} | function called when the year is changed (when we navigate pages) |
monthDisabledStyle | TextStyle | { color: "#00000050" } | text style for disabled months |
localeLanguage | string | "en" | specify the localization language for moment.js |
localeSettings | moment.LocaleSpecification | {} | to update the moment.js localization settings |
swipable | boolean | false | enables swiping between pages |
velocityThreshold | number | 0.3 | Velocity that has to be breached in order for swipe to be triggered (vx and vy properties of gestureState ) |
directionalOffsetThreshold | number | 80 | Absolute offset that shouldn't be breached for swipe to be triggered (dy for horizontal swipe, dx for vertical swipe) |
gestureIsClickThreshold | number | 5 | Absolute distance that should be breached for the gesture to not be considered a click (dx or dy properties of gestureState ) |
<View style={styles.container}>
<Text style={styles.welcome}>
Selected Month is { this.state.month && this.state.month.format('MMM YYYY')}
</Text>
<MonthSelectorCalendar
selectedDate={this.state.month}
monthTapped={(date) => this.setState({ month: date })}
/>
</View>
I'm open to keep this updated. Please open PRs!
FAQs
Swipable month selector in react native
The npm package react-native-month-selector receives a total of 15 weekly downloads. As such, react-native-month-selector popularity was classified as not popular.
We found that react-native-month-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.