# react-native-sselect

> A RN Select

Latest version **0.2.6** (published 2023-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-sselect
pnpm add react-native-sselect
yarn add react-native-sselect
bun add react-native-sselect
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2023-07-27 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 94.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | bbernag |
| Maintainers | bernagl |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-sselect
- Repository: https://github.com/bernagl/react-native-sselect
- Homepage: https://github.com/bernagl/react-native-sselect#readme
- Issues: https://github.com/bernagl/react-native-sselect/issues
- npm.io page: https://npm.io/package/react-native-sselect

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.6 (latest) — 2023-07-27
- 0.2.5 — 2023-07-27
- 0.2.4 — 2023-07-27
- 0.2.3 — 2023-07-27
- 0.2.2 — 2023-07-27
- 0.2.1 — 2023-07-26
- 0.2.0 — 2023-07-26
- 0.1.0 — 2023-07-26

## README

# react-native-sselect

 
A Customizable React Native Select
 

## Installation

  
  

```sh

npm  install  react-native-sselect

```

  

--- or ---

  

```sh

yarn  add  react-native-sselect

```

  

  

## Usage

Currently you have to wrap your form with `SelectProvider` this will handle to toggle selects when you have more than one.

  

```js

  

import { Select, SelectProvider } from  'react-native-sselect';

export default function  App() {
	return (
		<View  style={styles.container}>
			<SelectProvider>
				<Select
				name="sample"
				options={[
					{ label: "Option 1", value: "option1" },
					{ label: "Option 2", value: "option2" },
				]} />
			</SelectProvider>
		</View>
	);
}

  

const  styles  = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: "#fff",
		alignItems: "center",
		justifyContent: "center",
	},
});

```

  
## Props

| Name | Type | Required |
| --- | --- | --- |
| name | string | yes |
| options | {name: string; value: string }[] | yes |
| onChange | ({name: string; value: string }) ⇒ void | yes |
| defaultValue | {name: string; value: string } | |
| selectedValue | {name: string; value: string } | |
| optionsPlaceholder | string | |
| optionsHeight | number | |
| color | string | |
| backgroundColor | string | |
| placeholder | string | |
| selectedOptionContainerStyle | style | |
| optionsContainerStyle | | |
| optionsStyle | | |




## Contributing

  

  

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

  

  

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---
_Source: https://npm.io/package/react-native-sselect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
