
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-native-language-select
Advanced tools
Add the dependency:
npm i react-native-language-select
import LanguagePicker, { ILanguagePicker } from "react-native-language-select";
const data: ILanguagePicker[] = [
{
title: "English",
imageSource: require("./lib/local-assets/america.png"),
language: "en",
},
{
title: "Italian",
imageSource: require("./lib/local-assets/italy.png"),
},
{
title: "German",
imageSource: require("./lib/local-assets/germany.png"),
},
{
title: "Turkish",
imageSource: require("./lib/local-assets/turkey.png"),
language: "tr-TR",
},
{
title: "Swedish",
imageSource: require("./lib/local-assets/sweden.png"),
},
{
title: "Japanese",
imageSource: require("./lib/local-assets/japan.png"),
},
];
<LanguagePicker
initialIndex={1}
data={data}
onSelect={(selectedItem: ILanguagePicker) => {
onsole.log(selectedItem);
}}
/>
Property | Type | Default | Description |
---|---|---|---|
data | ILanguagePicker | undefined | Language select data |
onSelect | function | undefined | select the language item when it is pressed |
Property | Type | Default | Description |
---|---|---|---|
flatListStyle | style | default | set or override the style object for the main container |
containerWidth | windowWidth * 0.9 | number | set the main container width |
containerHeight | windowHeight * 0.7 | number | set the main container height |
initialIndex | number | undefined | set your selected language item |
width | windowWidth * 0.9 | number | set the language item width |
height | 80 | number | set the language item height |
backgroundColor | '#FFFFFF' | string | set the language item background color |
activeBorderColor | '#504ED9' | strings | set the language item active item border color |
textColor | '#2F3452' | string | set to language text |
itemContainer | default | default | change the language item container style |
imageComponent | default | React.ReactNode / React.ReactNode[] | change the language image component |
checkComponent | default | React.ReactNode / React.ReactNode[] | change the check component |
Thank you Oww Studio )
Sevval Eygul, sevvalleygull@gmail.com
React Native Language Select is available under the MIT license. See the LICENSE file for more info.
FAQs
Useful and customizable language picker
The npm package react-native-language-select receives a total of 27 weekly downloads. As such, react-native-language-select popularity was classified as not popular.
We found that react-native-language-select 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.