![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-select-two-picker-color
Advanced tools
Component like Select2 on web for React Native with color customization
npm install react-native-select-two-picker-color
yarn add react-native-select-two-picker-color
import React, { Component } from "react"
import { View, Text, StyleSheet } from "react-native"
import Select2 from "react-native-select-two-picker-color"
const mockData = [
{ id: 1, name: "React Native Developer", checked: true, color: '#096' }, // set default checked for render option item
{ id: 2, name: "Android Developer" },
{ id: 3, name: "iOS Developer", color: '#f00' }
]
// create a component
class CreateNewAppointment extends Component {
render() {
return (
<View style={styles.container}>
<Select2
isSelectSingle
style={{ borderRadius: 5 }}
colorTheme="blue"
popupTitle="Select item"
title="Select item"
data={mockData}
onSelect={data => {
this.setState({ data })
}}
onRemoveItem={data => {
this.setState({ data })
}}
/>
</View>
)
}
}
Property name | Type | Default | Description |
---|---|---|---|
style | Object | none | Custom style for component |
modalStyle | Object | none | Custom style for modal |
title | String | none | String display when you don't select any item |
data | Array | *required | Datasource of list options: an array of objects (each object have name and id property) |
onSelect | Function | none | The callback function trigger after you press select button |
onRemoveItem | Function | none | The callback function trigger after you press tags to remove them |
popupTitle | String | none | Title of modal select item |
colorTheme | string/color | #16a45f | Color for componet |
isSelectSingle | Bool | false | Selelect only one option |
showSearchBox | Bool | true | Show or hide search field |
cancelButtonText | string | Hủy | Cancel button text title |
selectButtonText | String | Chọn | Select button text title |
searchPlaceHolderText | String | Nhập vào từ khóa | Placeholder text for search field |
listEmptyTitle | String | Không tìm thấy lựa chọn phù hợp | Title to show when there's no item to be render |
defaultFontName | String | none | Set custom font for all component |
selectedTitleStyle | Object | none | Set custom style for display selected title text |
buttonTextStyle | Object | none | Set custom button text style |
buttonStyle | Object | none | Set custom button style |
MIT Licensed
FAQs
Component like Select2 on web for React Native with color customization
The npm package react-native-select-two-picker-color receives a total of 0 weekly downloads. As such, react-native-select-two-picker-color popularity was classified as not popular.
We found that react-native-select-two-picker-color 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.