React-native-fs: utf8.decode is not a function

Created on 21 Jan 2018  路  2Comments  路  Source: itinance/react-native-fs

For anyone else getting this error:

There's a naming collision between the "utf8" package and react-native's internal utf8 library.

@eacbkk forked utf8 to rename it:
https://github.com/eacbkk/utf8.js

I forked @tianling536's fork of react-native-fs to avoid the utf8 error and get RN 0.5x.x support:

https://github.com/Gregor1971/react-native-fs

... and this
https://github.com/Gregor1971/redux-persist-fs-storage

discussion postponed

Most helpful comment

I don't know if a PR makes sense here. The forked utf8 package isn't published, so I'm using github urls in the package.json files - probably not something you want to make "official".

I think the react-native team will come up with a good solution. They're discussing it: https://github.com/facebook/react-native/pull/17146.

All 2 comments

Do you want to submit a PR?

I don't know if a PR makes sense here. The forked utf8 package isn't published, so I'm using github urls in the package.json files - probably not something you want to make "official".

I think the react-native team will come up with a good solution. They're discussing it: https://github.com/facebook/react-native/pull/17146.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CesarLanderos picture CesarLanderos  路  4Comments

let-aurn picture let-aurn  路  3Comments

crobinson42 picture crobinson42  路  4Comments

opoze picture opoze  路  3Comments

MuppaAkhil picture MuppaAkhil  路  3Comments