You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-select-week-day

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-select-week-day

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.

0.0.6
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-select-week-day

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.

Installation

Native Cli: npm install react-native-select-week-day

Expo: expo install react-native-select-week-day

Demo

Week Selector demo

Sample code

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

Properties

PropsTypeDefaultDescription
selectableDaysString Array['Sun','Mon','Tue','Wed','Thu','Fri','Sat']
containerStyleObjectnull
initialWeekDaysString Array[]For multiple days selection
bubbleStyleObject{justifyContent: 'center', alignItems: 'center', borderRadius:75, padding: 10, margin: 5,backgroundColor: 'gray'}
bubbleTextStyleObject{color: 'white'}
bubblesInitialColorString'blue'
bubblesSelectedColorString'red'
onChangeFunctionnullIt will return index of clicked bubble
sizeNumber20

Keywords

react native week day selector

FAQs

Package last updated on 29 Jun 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.