Skip to content

Commit

Permalink
fix: update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Sep 3, 2024
1 parent bfe7427 commit 89d648e
Show file tree
Hide file tree
Showing 3 changed files with 812 additions and 398 deletions.
25 changes: 13 additions & 12 deletions expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
},
"dependencies": {
"@react-native-community/datetimepicker": "8.0.1",
"@react-native-community/masked-view": "^0.1.11",
"@react-native-community/netinfo": "11.3.1",
"@react-native-masked-view/masked-view": "0.3.1",
"@react-navigation/bottom-tabs": "6.6.1",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.3.2",
"@sentry/react-native": "~5.22.0",
"@sentry/react-native": "5.31.1",
"@shopify/flash-list": "1.7.1",
"base-64": "^1.0.0",
"dayjs": "^1.11.11",
Expand All @@ -49,9 +49,11 @@
"expo-build-properties": "^0.12.3",
"expo-checkbox": "^3.0.0",
"expo-constants": "^16.0.2",
"expo-dev-client": "^4.0.20",
"expo-dev-client": "4.0.25",
"expo-dev-menu": "5.0.21",
"expo-document-picker": "12.0.2",
"expo-image": "~1.12.13",
"expo-file-system": "17.0.1",
"expo-image": "1.12.15",
"expo-linking": "^6.3.1",
"expo-notifications": "0.28.16",
"expo-splash-screen": "^0.27.5",
Expand All @@ -61,22 +63,21 @@
"nativewind": "^2.0.11",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "^0.74.3",
"react-native": "0.75.2",
"react-native-awesome-slider": "^2.5.3",
"react-native-device-info": "^11.1.0",
"react-native-draggable-flatlist": "^4.0.1",
"react-native-fs": "2.20.0",
"react-native-gesture-handler": "~2.16.1",
"react-native-gesture-handler": "2.19.0",
"react-native-get-random-values": "^1.11.0",
"react-native-in-app-review": "^4.3.3",
"react-native-localize": "^3.2.0",
"react-native-mmkv": "^3.0.0-beta.6",
"react-native-reanimated": "~3.10.1",
"react-native-mmkv": "3.0.2",
"react-native-reanimated": "3.15.1",
"react-native-restart": "0.0.27",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-screens": "3.34.0",
"react-native-share": "10.2.1",
"react-native-svg": "15.2.0",
"react-native-svg": "15.6.0",
"react-native-swipe-list-view": "^3.2.9",
"react-native-swiper": "^1.6.0",
"react-native-tab-view": "^3.5.2",
Expand Down
6 changes: 3 additions & 3 deletions expo/src/scenes/Infos/Transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { storage } from "../../services/storage.js";
import API from "../../services/api.js";
import * as DocumentPicker from "expo-document-picker";
import * as Expo from "expo";
import RNFS from "react-native-fs";
import * as FileSystem from "expo-file-system";
import Share from "react-native-share";
import TipIcon from "../../components/illustrations/TipIcon.js";
import ClickIcon from "../../components/illustrations/icons/ClickIcon.js";
Expand Down Expand Up @@ -49,9 +49,9 @@ const Transfer = ({ navigation }) => {
if (value !== null) toExportData[key] = value;
});
const jsonExport = JSON.stringify(toExportData);
const path = `${RNFS.DocumentDirectoryPath}/export-oz-ensemble.json`;
const path = `${FileSystem.documentDirectory}oz-ensemble-export.json`;

await RNFS.writeFile(path, jsonExport, "utf8");
await FileSystem.writeAsStringAsync(path, jsonExport, { encoding: FileSystem.EncodingType.UTF8 });

const shareOptions = {
url: `file://${path}`,
Expand Down
Loading

0 comments on commit 89d648e

Please sign in to comment.