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

可以和react-native-mjRefresh 一起用吗,import Smart后会在iOS上报错 #7

Closed
RoarRain opened this issue Jul 4, 2018 · 6 comments

Comments

@RoarRain
Copy link

RoarRain commented Jul 4, 2018

ExceptionsManager.js:73 Warning: Native component for "RCTDefaultHeader" does not exist

ExceptionsManager.js:73 Warning: Native component for "SmartRefreshLayout" does not exist

ExceptionsManager.js:65 Cannot read property 'translate' of undefined

@RoarRain
Copy link
Author

RoarRain commented Jul 4, 2018

static constants = {
"TRANSLATE":SPModule.translate,
"SCALE":SPModule.scale,
"FIX_BEHIND":SPModule.fixBehind,
"FIX_FRONT":SPModule.fixFront,
"MATCH_LAYOUT":SPModule.matchLayout,
}

这个的原因

@2534290808
Copy link
Member

使用Platform.OS === 'android'判断使用SmartRefreshControl

@RoarRain
Copy link
Author

RoarRain commented Jul 5, 2018

react-native: 0.48
判断了 没用只要import 就会报错,

@RoarRain
Copy link
Author

RoarRain commented Jul 5, 2018

react-native-mjRefresh 怎么设置contentContainerStyle 没有用呀?

2534290808 added a commit that referenced this issue Jul 5, 2018
@2534290808
Copy link
Member

已经修复,v0.5.4

@2534290808
Copy link
Member

react-native-mjRefresh 怎么设置contentContainerStyle 没有用呀?该问题请到react-native-mjRefresh提issue,谢谢

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