react-native-language-select
Advanced tools
@@ -16,6 +16,6 @@ import React, { useState } from "react"; | ||
}; | ||
const renderItem = (item) => (<LanguageItem onSelect={handleOnSelectItem} isActive={selectedItem === item} item={item}/>); | ||
return (<FlatList {...rest} data={data} style={[_container(containerWidth, containerHeight), flatListStyle]} renderItem={({ item }) => renderItem(item)} keyExtractor={(item) => item.title}/>); | ||
const renderItem = (item) => (<LanguageItem onSelect={handleOnSelectItem} isActive={selectedItem === item} item={item} {...rest}/>); | ||
return (<FlatList data={data} style={[_container(containerWidth, containerHeight), flatListStyle]} renderItem={({ item }) => renderItem(item)} keyExtractor={(item) => item.title}/>); | ||
}; | ||
export default LanguagePicker; | ||
//# sourceMappingURL=LanguagePicker.js.map |
{ | ||
"name": "react-native-language-select", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Useful and customizable language picker", | ||
@@ -5,0 +5,0 @@ "main": "./build/dist/LanguagePicker.js", |
@@ -5,3 +5,3 @@ <img alt="React Native Typescript Library Starter" src="assets/logo.png" width="1050"/> | ||
<img alt="React Native Typescript Library Starter" | ||
src="assets/react-native-language-select.gif" /> | ||
src="assets/react-native-language-select.gif" height="1050" width="600"/> | ||
</p> | ||
@@ -43,3 +43,3 @@ | ||
imageSource: require("./lib/local-assets/turkey.png"), | ||
language: "tr", | ||
language: "tr-TR", | ||
}, | ||
@@ -99,2 +99,6 @@ { | ||
## Inspiration | ||
Thank you [Oww Studio ](https://dribbble.com/shots/15254633-Translator-Mobile-App-Exploration?utm_source=Clipboard_Shot&utm_campaign=milliarta&utm_content=Translator%20Mobile%20App%20Exploration%20%F0%9F%87%AC%F0%9F%87%A7&utm_medium=Social_Share&utm_source=Clipboard_Shot&utm_campaign=milliarta&utm_content=Translator%20Mobile%20App%20Exploration%20%F0%9F%87%AC%F0%9F%87%A7&utm_medium=Social_Share)) | ||
## Author | ||
@@ -101,0 +105,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
370578
0.12%108
3.85%