1.3.7-3 - Test Build - Update Photo Viewer.
This commit is contained in:
6
app.json
6
app.json
@@ -4,19 +4,19 @@
|
|||||||
"slug": "imexmobile",
|
"slug": "imexmobile",
|
||||||
"version": "1.3.7",
|
"version": "1.3.7",
|
||||||
"extra": {
|
"extra": {
|
||||||
"expover": "2"
|
"expover": "3"
|
||||||
},
|
},
|
||||||
"orientation": "default",
|
"orientation": "default",
|
||||||
"icon": "./assets/logo192noa.png",
|
"icon": "./assets/logo192noa.png",
|
||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"bundleIdentifier": "com.imex.imexmobile",
|
"bundleIdentifier": "com.imex.imexmobile",
|
||||||
"buildNumber": "2",
|
"buildNumber": "3",
|
||||||
"googleServicesFile": "./GoogleService-Info.plist"
|
"googleServicesFile": "./GoogleService-Info.plist"
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"package": "com.imex.imexmobile",
|
"package": "com.imex.imexmobile",
|
||||||
"versionCode": 1100015,
|
"versionCode": 1100016,
|
||||||
"googleServicesFile": "./google-services.json"
|
"googleServicesFile": "./google-services.json"
|
||||||
},
|
},
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ export default function JobDocumentsComponent({ job, loading, refetch }) {
|
|||||||
DetermineFileType(doc.type) === "video"
|
DetermineFileType(doc.type) === "video"
|
||||||
? GenerateThumbUrl(doc)
|
? GenerateThumbUrl(doc)
|
||||||
: GenerateSrcUrl(doc),
|
: GenerateSrcUrl(doc),
|
||||||
|
uri:
|
||||||
|
DetermineFileType(doc.type) === "video"
|
||||||
|
? GenerateThumbUrl(doc)
|
||||||
|
: GenerateSrcUrl(doc),
|
||||||
thumbUrl: GenerateThumbUrl(doc),
|
thumbUrl: GenerateThumbUrl(doc),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
import { SafeAreaView } from "react-native";
|
import { SafeAreaView } from "react-native";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ImageGallery } from "@georstat/react-native-image-gallery";
|
|
||||||
|
import ImageView from "react-native-image-viewing";
|
||||||
|
|
||||||
export default function MediaCacheOverlay({
|
export default function MediaCacheOverlay({
|
||||||
photos,
|
photos,
|
||||||
previewVisible,
|
previewVisible,
|
||||||
setPreviewVisible,
|
setPreviewVisible,
|
||||||
imgIndex,
|
imgIndex,
|
||||||
|
setImgIndex,
|
||||||
}) {
|
}) {
|
||||||
//const videoRef = React.useRef(null);
|
//const videoRef = React.useRef(null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SafeAreaView>
|
<SafeAreaView>
|
||||||
<ImageGallery
|
<ImageView
|
||||||
close={() => setPreviewVisible(false)}
|
onRequestClose={() => setPreviewVisible(false)}
|
||||||
isOpen={previewVisible}
|
visible={previewVisible}
|
||||||
images={photos}
|
images={photos}
|
||||||
initialIndex={imgIndex}
|
imageIndex={imgIndex}
|
||||||
|
onImageIndexChange={(...props) => {
|
||||||
|
console.log(props);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.7.0-alpha.3",
|
"@apollo/client": "^3.7.0-alpha.3",
|
||||||
"@expo/vector-icons": "^13.0.0",
|
"@expo/vector-icons": "^13.0.0",
|
||||||
"@georstat/react-native-image-gallery": "^1.1.0",
|
|
||||||
"@react-native-async-storage/async-storage": "~1.17.6",
|
"@react-native-async-storage/async-storage": "~1.17.6",
|
||||||
"@react-native-community/art": "^1.2.0",
|
"@react-native-community/art": "^1.2.0",
|
||||||
"@react-native-community/cli-debugger-ui": "^7.0.3",
|
"@react-native-community/cli-debugger-ui": "^7.0.3",
|
||||||
@@ -63,6 +62,7 @@
|
|||||||
"react-native": "0.68.2",
|
"react-native": "0.68.2",
|
||||||
"react-native-gesture-handler": "~2.2.1",
|
"react-native-gesture-handler": "~2.2.1",
|
||||||
"react-native-image-gallery": "^2.1.5",
|
"react-native-image-gallery": "^2.1.5",
|
||||||
|
"react-native-image-viewing": "^0.2.2",
|
||||||
"react-native-indicators": "^0.17.0",
|
"react-native-indicators": "^0.17.0",
|
||||||
"react-native-pager-view": "5.4.15",
|
"react-native-pager-view": "5.4.15",
|
||||||
"react-native-paper": "^4.11.2",
|
"react-native-paper": "^4.11.2",
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@@ -1819,11 +1819,6 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
|
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
|
||||||
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
|
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
|
||||||
|
|
||||||
"@georstat/react-native-image-gallery@^1.1.0":
|
|
||||||
version "1.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@georstat/react-native-image-gallery/-/react-native-image-gallery-1.1.0.tgz#85ec40cec9415f372c950a5d88e26c7123de3cc8"
|
|
||||||
integrity sha512-rRyZpEFWQXUAlzQqaMi3/r3ymFUKqoQd+Jx1BevUEurMcPAX5321x8BbJ0jo1j4JfWR/koZDwyRZgoitEO5QTA==
|
|
||||||
|
|
||||||
"@graphql-typed-document-node/core@^3.1.0", "@graphql-typed-document-node/core@^3.1.1":
|
"@graphql-typed-document-node/core@^3.1.0", "@graphql-typed-document-node/core@^3.1.1":
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.1.tgz#076d78ce99822258cf813ecc1e7fa460fa74d052"
|
resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.1.tgz#076d78ce99822258cf813ecc1e7fa460fa74d052"
|
||||||
@@ -7630,6 +7625,11 @@ react-native-image-gallery@^2.1.5:
|
|||||||
react-mixin "^3.0.5"
|
react-mixin "^3.0.5"
|
||||||
react-timer-mixin "^0.13.3"
|
react-timer-mixin "^0.13.3"
|
||||||
|
|
||||||
|
react-native-image-viewing@^0.2.2:
|
||||||
|
version "0.2.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-native-image-viewing/-/react-native-image-viewing-0.2.2.tgz#fb26e57d7d3d9ce4559a3af3d244387c0367242b"
|
||||||
|
integrity sha512-osWieG+p/d2NPbAyonOMubttajtYEYiRGQaJA54slFxZ69j1V4/dCmcrVQry47ktVKy8/qpFwCpW1eT6MH5T2Q==
|
||||||
|
|
||||||
react-native-indicators@^0.17.0:
|
react-native-indicators@^0.17.0:
|
||||||
version "0.17.0"
|
version "0.17.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-indicators/-/react-native-indicators-0.17.0.tgz#92f95efaf5fb53be576dfe4e1980a25655a93f55"
|
resolved "https://registry.yarnpkg.com/react-native-indicators/-/react-native-indicators-0.17.0.tgz#92f95efaf5fb53be576dfe4e1980a25655a93f55"
|
||||||
|
|||||||
Reference in New Issue
Block a user