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

Can't import without errors... #4

Open
hrag opened this issue Feb 18, 2019 · 1 comment
Open

Can't import without errors... #4

hrag opened this issue Feb 18, 2019 · 1 comment
Assignees

Comments

@hrag
Copy link

hrag commented Feb 18, 2019

I can't even import this library without seeing this error:

Cannot read property 'RNFSFileTypeRegular' of undefined

I've properly installed and linked react-native-fs, followed instructions thoroughly 3x.

Import looks like this:

import fileType from 'react-native-file-type';

Any ideas? This would be really useful, and should save me a big hassle using just 'file-type'

@hrag hrag changed the title Something's not right Can't import without errors... Feb 18, 2019
@prscX prscX self-assigned this Feb 19, 2019
@prscX
Copy link
Owner

prscX commented Feb 19, 2019

Thanks @hrag for raising the issue.

Based on shared information, I believe, you are using RNFS -> 3.0 and above. Personally I have tested only on 2.x

Looks like it is the problem within RNFS. Could you please check their repository -> issues, if anyone else might have faced the similar issue.

If you find any solution, please share it with us as well.

Thanks
</ Pranav >

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

2 participants