Invariant violation: Imagestore has been removed from react-native. To get base64-ecoded string from a local user either of the following third-party library: 'expo-file-system': readAsStringAsync(filepath,base64) react-native-fs :readFile(filepath,base64)
Here are the library I am using right now
"dependencies": {
"expo": "~38.0.8",
"expo-file-system": "~9.0.1",
"expo-gl": "~8.3.1",
"expo-phaser": "^0.0.1-alpha.0",
"expo-status-bar": "^1.0.2",
"react": "~16.11.0",
"react-dom": "~16.11.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
"react-native-web": "~0.11.7"
}
Here is the app.js code
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import ExpoPhaser from "expo-phaser";
import { GLView } from 'expo-gl';
export default function App() {
return (
Open up App.js to start working on your app! startGame({ context })}
/>
);
}
function startGame({ context }) {
const game = ExpoPhaser.game({ context });
}
Invariant violation: Imagestore has been removed from react-native. To get base64-ecoded string from a local user either of the following third-party library: 'expo-file-system':
readAsStringAsync(filepath,base64)
react-native-fs :readFile(filepath,base64)Here are the library I am using right now "dependencies": { "expo": "~38.0.8", "expo-file-system": "~9.0.1", "expo-gl": "~8.3.1", "expo-phaser": "^0.0.1-alpha.0", "expo-status-bar": "^1.0.2", "react": "~16.11.0", "react-dom": "~16.11.0", "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz", "react-native-web": "~0.11.7" }
Here is the app.js code
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import ExpoPhaser from "expo-phaser"; import { GLView } from 'expo-gl';
export default function App() { return (
); }
function startGame({ context }) { const game = ExpoPhaser.game({ context }); }
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, });
Please check this issue and let us know