Ah. fiction-expo-restart
is causing the old version of @expo/config-plugins
to be installed.
It depends on expo-updates@“^0.4.1”
, which is old and depends on the old version of @expo/config-plugins
.
The complete code of fiction-expo-restart
is as follows:
import * as Updates from 'expo-updates';
import { Platform } from 'react-native';
const Restart = ()=>{
if(Platform.OS=="web")
{
window.location.reload()
}
else{
Updates.reloadAsync();
}
}
export { Restart }
So I suggest you uninstall it. You do not have react-dom
and react-native-web
installed, so do not need to worry about Platform.OS === "web"
and you can just replace calls to fiction-expo-restart
’s Restart
function with Updates.reloadAsync()
.