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

Cannot resolve symbol 'heightPercentageToDP' #94

Open
amduffy19 opened this issue Jan 15, 2021 · 4 comments
Open

Cannot resolve symbol 'heightPercentageToDP' #94

amduffy19 opened this issue Jan 15, 2021 · 4 comments

Comments

@amduffy19
Copy link

amduffy19 commented Jan 15, 2021

I'm using this library on Android with no problems, everything looks great and is responsive.

However, I'm trying to get it working on iOS and running into the errors "Cannot resolve symbol 'heightPercentageToDP'" and "Cannot resolve symbol 'widthPercentageToDP'" when I try to import these functions.
Screen Shot 2021-01-15 at 2 29 30 PM

This is not just an issue with WebStorm not finding the functions, because the result when I run the app is that there is no styling -- all the margins and paddings are 0, the width of my TextInputs is the full screen, etc.

Any ideas why this isn't working for iOS? Thank you!

@ajimae
Copy link

ajimae commented Feb 8, 2021

Hi @amduffy19

Try running rm -rf node_modules form the root of the project and then yarn install && react-native link I believe this should solve your issues.

If it doesn't then kindly let us know.

@gregfenton
Copy link

Why the react-native link ?

@ajimae
Copy link

ajimae commented Feb 8, 2021

Why the react-native link ?

To link any library he might reinstalled using the later command above, I would also like to point out that the react-native link command is not compulsory though.

@jcerone-boom
Copy link

Since the problem is with iOS, it might be worth trying to run cd ios && pod install && cd ... I find that if I've run rm -rf node_modules and yarn install and things aren't working, running pod install tends to fix things.

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

4 participants