Skip to content

Commit

Permalink
fix: ios reload restart compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Aug 2, 2024
1 parent ef2c3ea commit 2456a96
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion expo/app.versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"buildNumber": 304,
"buildNumber": 305,
"buildName": "1.26.1"
}
1 change: 1 addition & 0 deletions expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion expo/src/scenes/Infos/Transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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");
Expand Down
11 changes: 11 additions & 0 deletions expo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2456a96

Please sign in to comment.