
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
react-native-select-week-day
Advanced tools
This react native package returns index of clicked week day bubble. For example you click on 'sun' it will return '0'. you can use this package for week day picker in your code.
This react native package returns index of clicked week day bubble. For example if you click on 'sun' it will return '0' and vice versa. you can use this package for week day picker in your code.
Native Cli: npm install react-native-select-week-day
Expo: expo install react-native-select-week-day
import { SelectWeekDay } from "react-native-select-week-day";
export default function App() {
return (
<SelectWeekDay
selectableDays={["sun", "mon", "sat", "thu"]}
containerStyle={{
justifyContent: "center",
alignItems: "center",
marginVertical: 60,
}}
bubblesInitialColor={"green"}
bubblesSelectedColor={"red"}
size={50}
onChange={(day) => alert(day)}
/>
);
}
Use
import { SelectMultipleWeekDays } from "react-native-select-week-day";
if you want to select multiple days
Props | Type | Default | Description |
---|---|---|---|
selectableDays | String Array | ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] | |
containerStyle | Object | null | |
initialWeekDays | String Array | [] | For multiple days selection |
bubbleStyle | Object | {justifyContent: 'center', alignItems: 'center', borderRadius:75, padding: 10, margin: 5,backgroundColor: 'gray'} | |
bubbleTextStyle | Object | {color: 'white'} | |
bubblesInitialColor | String | 'blue' | |
bubblesSelectedColor | String | 'red' | |
onChange | Function | null | It will return index of clicked bubble |
size | Number | 20 |
FAQs
This react native package returns index of clicked week day bubble. For example you click on 'sun' it will return '0'. you can use this package for week day picker in your code.
The npm package react-native-select-week-day receives a total of 1 weekly downloads. As such, react-native-select-week-day popularity was classified as not popular.
We found that react-native-select-week-day 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.