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

Use of undeclared Identifier 'image' #5

Closed
MoOx opened this issue Jan 21, 2021 · 3 comments · Fixed by #7
Closed

Use of undeclared Identifier 'image' #5

MoOx opened this issue Jan 21, 2021 · 3 comments · Fixed by #7

Comments

@MoOx
Copy link
Contributor

MoOx commented Jan 21, 2021

I am preparing a PR to make this module easy to consume (that will close #2 and #4).
Everything is almost good, but I am facing an issue I am too noob to handle :)
I almost never wrote objc (or swift) and each time it was using stack overflow :')

Can you help me to solve this one?

- (UIView *)view
{
  // ⚠️ below I get the error "Use of undeclared Identifier 'image'" the compiling
  UISFSymbolImageView *imageView = [[UISFSymbolImageView alloc] initWithImage:image];
  // @todo customize content mode?
  [imageView setContentMode:UIViewContentModeScaleAspectFit];
  return imageView;
}

image

@wiru123321
Copy link

Tell me what u done before get this error.

@MoOx
Copy link
Contributor Author

MoOx commented Jan 21, 2021

Too many things (like very many things - I had to bootstrap a fresh react native module to have the code running).
I will open a PR tonight or tomorrow morning, I am almost done! Be patient please :D

@MoOx
Copy link
Contributor Author

MoOx commented Jan 21, 2021

@wiru123321 actually, I just got this working! Keep in mind it's iOS 14+ only for now, don't expect this to work in other iOS version (for now) or other OS (will never work).

#7

@birkir birkir closed this as completed in #7 Jan 23, 2021
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

Successfully merging a pull request may close this issue.

2 participants