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

invariant violation: view config getter callback for ocomponent 'img' must be a function #35

Open
kiransawant15 opened this issue Apr 11, 2020 · 0 comments

Comments

@kiransawant15
Copy link

Hi please find my below code

import React, { Component } from 'react';
import ProcessImage from 'react-imgpro';
import { IMG_APP_LOGO } from '../images';

class CamFilter extends React.Component {
state = {
src: '',
err: null
}

render() {
  return (
    <ProcessImage
      image={IMG_APP_LOGO}
      resize={{ width: 500, height: 500 }}
      colors={{
        mix: {
          color: 'mistyrose',
          amount: 20
        }
      }}
      processedImage={(src, err) => this.setState({ src, err})}
    />
  )
}

}

export default CamFilter;

i am getting following error
invariant violation: view config getter callback for component 'img' must be a function

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

1 participant