diff --git a/expo/app.versions.json b/expo/app.versions.json index cbf9cef99..a3e8407be 100644 --- a/expo/app.versions.json +++ b/expo/app.versions.json @@ -1,4 +1,4 @@ { - "buildNumber": 304, + "buildNumber": 305, "buildName": "1.26.1" } diff --git a/expo/package.json b/expo/package.json index 7f102849a..582e26567 100644 --- a/expo/package.json +++ b/expo/package.json @@ -72,6 +72,7 @@ "react-native-localize": "^3.2.0", "react-native-mmkv": "^3.0.0-beta.6", "react-native-reanimated": "~3.10.1", + "react-native-restart": "0.0.27", "react-native-safe-area-context": "4.10.5", "react-native-screens": "3.31.1", "react-native-share": "10.2.1", diff --git a/expo/src/scenes/Infos/Transfer.js b/expo/src/scenes/Infos/Transfer.js index 25d772383..62afb05cf 100644 --- a/expo/src/scenes/Infos/Transfer.js +++ b/expo/src/scenes/Infos/Transfer.js @@ -15,6 +15,7 @@ import OppositeArrowsIcon from "../../components/illustrations/icons/OppositeArr import CloudIcon from "../../components/illustrations/icons/CloudIcon.js"; import DownloadIcon from "../../components/illustrations/icons/DownloadIcon.js"; import { logEvent } from "../../services/logEventsWithMatomo.js"; +import RNRestart from "react-native-restart"; const Transfer = ({ navigation }) => { const exportData = async () => { @@ -165,7 +166,7 @@ const Transfer = ({ navigation }) => { logEvent({ category: "TRANSFER", action: "IMPORT_DATA_SUCCESS", name: "PUSH_NOTIF_TOKEN_NOT_SYNC" }); } Alert.alert("Félicitations, vos données ont bien été importées 🥳"); - Expo.reloadAppAsync(); + RNRestart.restart(); }); } catch (error) { Alert.alert("Une erreur est survenue lors de l'importation des données"); diff --git a/expo/yarn.lock b/expo/yarn.lock index d1b3547ec..0b2316b36 100644 --- a/expo/yarn.lock +++ b/expo/yarn.lock @@ -10165,6 +10165,7 @@ __metadata: react-native-localize: "npm:^3.2.0" react-native-mmkv: "npm:^3.0.0-beta.6" react-native-reanimated: "npm:~3.10.1" + react-native-restart: "npm:0.0.27" react-native-safe-area-context: "npm:4.10.5" react-native-screens: "npm:3.31.1" react-native-share: "npm:10.2.1" @@ -11018,6 +11019,16 @@ __metadata: languageName: node linkType: hard +"react-native-restart@npm:0.0.27": + version: 0.0.27 + resolution: "react-native-restart@npm:0.0.27" + peerDependencies: + react: "*" + react-native: "*" + checksum: 13ef35f98d12658e29a2c84aa68946cec6e0add946eb3a5d4ffae1fdce050bb563e269e55d9c037e47072a78bcea98f010536d9d7dd9c26eec9e7c9795bf713f + languageName: node + linkType: hard + "react-native-safe-area-context@npm:4.10.5": version: 4.10.5 resolution: "react-native-safe-area-context@npm:4.10.5"