Skip to content

Commit 9394b4e

Browse files
committed
The android platform returns RN's official ListView
1 parent ba992c5 commit 9394b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MJRefresh.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
UIManager,
1010
ScrollView as NativeScrollView,
1111
Platform,
12+
ListView as NativeListView,
1213
} from 'react-native';
1314
import PropTypes from 'prop-types'
1415
import MJScrollView from './MJScrollView'
@@ -79,5 +80,5 @@ MJRefresh.propTypes={
7980
...ViewPropTypes
8081
}
8182
export const ScrollView = Platform.OS === 'ios' ? MJScrollView : NativeScrollView;
82-
export const ListView = MJListView;
83+
export const ListView = Platform.OS === 'ios' ? MJListView : NativeListView;
8384
export default MJRefresh;

0 commit comments

Comments
 (0)