Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageStore deprecated #161

Closed
tronze opened this issue Jun 20, 2019 · 8 comments
Closed

ImageStore deprecated #161

tronze opened this issue Jun 20, 2019 · 8 comments

Comments

@tronze
Copy link

tronze commented Jun 20, 2019

Warning: ImageStore is deprecated and will be removed in a future release. To get a base64-encoded string from a local image use either of the following third-party libraries:* expo-file-system: `readAsStringAsync(filepath, 'base64')`* react-native-fs: `readFile(filepath, 'base64')`
- node_modules/expo/build/environment/muteWarnings.fx.js:26:24 in error
- node_modules/react-native/node_modules/fbjs/lib/warning.js:30:18 in printWarning
- node_modules/react-native/node_modules/fbjs/lib/warning.js:51:23 in <unknown>
- node_modules/react-native/Libraries/Utilities/warnOnce.js:29:10 in warnOnce
- node_modules/react-native/Libraries/react-native/react-native-implementation.js:54:6 in ImageStore
- node_modules/vue-native-helper/build.js:3942:39 in <unknown>
- node_modules/vue-native-helper/build.js:3939:33 in buildNativeComponent
* App.vue:104:74 in <unknown>
- node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation
- node_modules/expo/AppEntry.js:4:0 in <unknown>
- node_modules/metro/src/lib/polyfills/require.js:331:6 in loadModuleImplementation
- node_modules/metro/src/lib/polyfills/require.js:197:45 in guardedLoadModule
* null:null in global code
@drsaint23
Copy link

Getting exact error, started to show up when I've upgraded to Expo 33. Since I'm not using ImageStore anywhere in the code, I think it might be related to AsyncStorage

@tronze tronze closed this as completed Jul 8, 2019
@tronze tronze reopened this Jul 8, 2019
@tronze
Copy link
Author

tronze commented Jul 8, 2019

Yes, I also think it is related to AsyncStorage. Since I'm not sure where does ImageStore is used in the framework, I'm looking at the code and trying to update before it is actually deprecated

@nanadjei
Copy link

nanadjei commented Jul 9, 2019

Having the same error.

@tim92109
Copy link

Same here... I'll add that it throws with every code change (build). Very distracting when trying to debug.

@tronze
Copy link
Author

tronze commented Jul 11, 2019

Same here... I'll add that it throws with every code change (build). Very distracting when trying to debug.

Yes.. I think that Vue Native is using deprecated libraries which means even I don't use ImageStore in my app, it will throw this warning message all the time because the deprecated libraries will be included in app building process. (Found it happening when Vue Native is transforming into React Native in app building process.)

I think the solution will be updating the deprecated library, but I'm still struggling to find out what deprecated libraries Vue Native using.

@icarter09
Copy link

icarter09 commented Jul 21, 2019

I know it's not a good long term fix, but I commented out the warning message. It can be found in node_modules/react-native/Libraries/react-native/react-native-implementation.js lines 52-60. I commented out the warnOnce() in get ImageStore() which is where the error message is being returned.
Like I said, not a good long term fix, but helped me to continue development and debugging. I'm currently looking into a better fix.

@tim92109
Copy link

tim92109 commented Jul 22, 2019

I know it's not a good long term fix, but I commented out the warning message.

That makes me happy for now - at least it won't get in the way of debugging.

@icarter09
Copy link

I put up a PR for this issue. Please let me know if the PR is wrong/incorrect/needs updating and I'll make the changes accordingly or close out the PR if necessary. I tested the PR out and it addresses the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants