@coawazie/react-native-ev-models-picker
v0.1.28
Published
A package to select EV makes, models, years, and trims from a large collection of options
Downloads
11
Maintainers
Readme
React Native EV Models Picker
See an example usage here: 👉🏿 https://snack.expo.dev/@coawazie/ev-selector-example?platform=ios
This package provides a customizable dropdown selector component for React Native applications, allowing users to select electric vehicle (EV) makes, years, trims, and models. It's built with TypeScript for type safety and developer productivity.
Features
- Dropdown selectors for EV makes, years, trims, and models.
- Customizable UI to match your app's design.
- Type definitions for TypeScript support.
- Easy to integrate with React Native apps.
Installation
To install the React Native EV Models Picker, run:
yarn addadd @coawazie/react-native-ev-models-picker react-native-dropdown-picker # using yarn
npm install add @coawazie/react-native-ev-models-picker react-native-dropdown-picker # using npm
Usage
First, import the EVSelector component in your React Native app:
import {EVSelector} from 'add @coawazie/react-native-ev-models-picker';
Then, use the EVSelector component in your app. Here's a basic example:
import React, {useState} from 'react';
import {EVSelector} from 'add @coawazie/react-native-ev-models-picker';
import {View} from 'react-native';
const App = () => {
const [selectedEV, setSelectedEV] = useState(null);
return (
<View>
<EVSelector onValueChange={(value) => setSelectedEV(value)}/>
</View>
);
};
export default App;
Component API
Props
Events/Callbacks
Contributing
We welcome contributions to the React Native EV Selector! If you have suggestions for improvements or encounter any issues, please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.