mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-19 13:11:23 -04:00
committed by
GitHub
parent
d2783a2848
commit
2b35cabbcb
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "inaturalistreactnative",
|
||||
"version": "0.4.0",
|
||||
"version": "0.5.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "inaturalistreactnative",
|
||||
"version": "0.4.0",
|
||||
"version": "0.5.0",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@babel/eslint-parser": "^7.21.3",
|
||||
|
||||
@@ -30,23 +30,25 @@ const PhotoSelector = ( {
|
||||
<Pressable
|
||||
accessibilityRole="button"
|
||||
onPress={( ) => scrollToIndex( index )}
|
||||
className={classnames(
|
||||
"overflow-hidden",
|
||||
{
|
||||
"border border-white border-[3px]": selectedPhotoIndex === index
|
||||
},
|
||||
{
|
||||
"mt-[18px]": isLargeScreen && isLandscapeMode,
|
||||
"mt-[47px]": isLargeScreen && !isLandscapeMode
|
||||
},
|
||||
{
|
||||
[`${smallPhotoClass}`]: !isLargeScreen,
|
||||
[`${largePhotoClass}`]: isLargeScreen
|
||||
}
|
||||
)}
|
||||
>
|
||||
<Image
|
||||
source={{ uri: item }}
|
||||
accessibilityIgnoresInvertColors
|
||||
className={classnames(
|
||||
{
|
||||
"border border-white border-[3px]": selectedPhotoIndex === index
|
||||
},
|
||||
{
|
||||
"mt-[18px]": isLargeScreen && isLandscapeMode,
|
||||
"mt-[47px]": isLargeScreen && !isLandscapeMode
|
||||
},
|
||||
{
|
||||
[`${smallPhotoClass}`]: !isLargeScreen,
|
||||
[`${largePhotoClass}`]: isLargeScreen
|
||||
}
|
||||
)}
|
||||
className="w-full h-full"
|
||||
/>
|
||||
</Pressable>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user