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

[iOS] Warning of RCTSwipeRefreshLayout #1

Open
nuqiewuoz opened this issue Oct 26, 2016 · 1 comment
Open

[iOS] Warning of RCTSwipeRefreshLayout #1

nuqiewuoz opened this issue Oct 26, 2016 · 1 comment

Comments

@nuqiewuoz
Copy link

Find an warning on iOS platform.

ExceptionsManager.js:78 Warning: Native component for "RCTSwipeRefreshLayout" does not exist

the stack is:

reactConsoleError @ ExceptionsManager.js:78
printWarning @ warning.js:36
warning @ warning.js:60
requireNativeComponent @ requireNativeComponent.js:53
(anonymous function) @ AndroidSwipeRefreshLayout.js:48
loadModuleImplementation @ require.js:122
guardedLoadModule @ require.js:65
_require @ require.js:49
(anonymous function) @ PullToRefreshListView-android.js:36
loadModuleImplementation @ require.js:122
guardedLoadModule @ require.js:65
_require @ require.js:49
(anonymous function) @ PullToRefreshListView.js:13
loadModuleImplementation @ require.js:122

I find in the PullToRefreshListView.js:12~13.
It imports both iOS and Android view at the same time, that's the problem:

import AndroidPullToRefreshListView from './PullToRefreshListView-android'
import IOSPullToRefreshListView from './PullToRefreshListView-ios'

I think it would be better to divide PullToRefreshListView.js to two files: PullToRefreshListView.ios.js and PullToRefreshListView.android.js

@cyqresig
Copy link
Contributor

cyqresig commented Nov 3, 2016

Thank you for submitting this issue. It will be fixed next version :)

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