Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@mobile-reality/react-native-select-pro
Advanced tools
React Native dropdown (select) component developed by Mobile Reality
React Native dropdown (select) component developed by Mobile Reality
react-native-portal
Clone this repo https://github.com/MobileReality/react-native-select-pro and next:
cd apps/expo
yarn dev-start
https://mobilereality.github.io/react-native-select-pro/
npm install @mobile-reality/react-native-select-pro
or
yarn add @mobile-reality/react-native-select-pro
Firstly, wrap your app code in SelectProvider
import React from 'react';
import { SelectProvider } from '@mobile-reality/react-native-select-pro';
const RootComponent = () => {
return (
<SelectProvider>
{/* rest of your app code */}
</SelectProvider>
)
};
Then you can use Select
component
import React from 'react';
import { View } from 'react-native';
import { Select } from '@mobile-reality/react-native-select-pro';
const SomeComponent = () => {
return (
<View>
<Select {/* One required prop: `options` */}
options={[{ value: 'somevalue', label: 'somelabel' }]}
/>
</View>
)
};
Additionally you can pass second available data structure:
[
{
title: 'sometitle',
data: { value: 'somevalue', label: 'somelabel' },
},
];
If you want to use Select
component inside:
Modal
from react-native
/ react-native-modal
BottomSheet
from react-native-bottom-sheet
you need to wrap code inside Modal
/ BottomSheet
in SelectModalProvider
import React from 'react';
import { View, Modal, Text } from 'react-native';
import { Select, SelectModalProvider } from '@mobile-reality/react-native-select-pro';
const SomeComponent = () => {
return (
<View>
<Modal> {/* e.g. `Modal` from `react-native` */}
<SelectModalProvider> {/* `SelectModalProvider` wrapping code inside `Modal` */}
<Text>Modal</Text>
<Select
options={[{ value: 'somevalue', label: 'somelabel' }]}
/>
</SelectModalProvider>
</Modal>
</View>
)
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
Contact with us https://mobilereality.pl/en
FAQs
React Native dropdown (select) component developed by Mobile Reality
The npm package @mobile-reality/react-native-select-pro receives a total of 712 weekly downloads. As such, @mobile-reality/react-native-select-pro popularity was classified as not popular.
We found that @mobile-reality/react-native-select-pro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.