From 8a38bca4fd955199a62449ee371630c8df94d0e4 Mon Sep 17 00:00:00 2001 From: saifuddin Date: Wed, 12 Sep 2018 17:52:42 +0800 Subject: [PATCH] fix #108 - toggleRowActive not passed after setting manuallyActivateRows={true} --- src/SortableList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SortableList.js b/src/SortableList.js index be7d2d0..fc3e1d3 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -1,4 +1,4 @@ -import React, {Component} from 'react'; +import React, {Component, createElement} from 'react'; import PropTypes from 'prop-types'; import {ScrollView, View, StyleSheet, Platform, RefreshControl, ViewPropTypes} from 'react-native'; import {shallowEqual, swapArrayElements} from './utils'; @@ -267,7 +267,7 @@ export default class SortableList extends Component { onRelease={this._onReleaseRow.bind(this, key)} onMove={this._onMoveRow} manuallyActivateRows={this.props.manuallyActivateRows}> - {renderRow({ + {createElement(renderRow, { key, data: data[key], disabled: !sortingEnabled,