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

addComponentAsRefTo(...) #6

Open
yinlsea opened this issue May 25, 2017 · 6 comments
Open

addComponentAsRefTo(...) #6

yinlsea opened this issue May 25, 2017 · 6 comments

Comments

@yinlsea
Copy link

yinlsea commented May 25, 2017

提示报错:
addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

使用最简单的引用
<ReactCoreImageUpload
text="Upload Your Image"
className='pure-button'
inputOfFile="files"
url="..."
imageUploaded={(res) => {
debugger;
}}>

@JackPu
Copy link
Member

JackPu commented Jun 5, 2017

提供下 react-native 的版本 react 版本?

@yinlsea
Copy link
Author

yinlsea commented Jun 6, 2017

[email protected]

@VincentSuperper
Copy link

@JackPu 我也出现这种情况 [email protected]

@Daisy201410
Copy link

Daisy201410 commented Jun 20, 2017

一样的情况,[email protected]

@JackPu
Copy link
Member

JackPu commented Jun 20, 2017

@fangbao-0418
Copy link

我也遇到这种情况

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

5 participants