mirror of
https://github.com/standardnotes/mobile.git
synced 2026-05-24 14:34:31 -04:00
No refresh control when offline
This commit is contained in:
@@ -96,7 +96,7 @@ export default class NoteList extends Component {
|
||||
maxToRenderPerBatch={6}
|
||||
keyboardDismissMode={'interactive'}
|
||||
keyboardShouldPersistTaps={'always'}
|
||||
refreshControl={
|
||||
refreshControl={!this.props.hasRefreshControl ? null :
|
||||
<RefreshControl
|
||||
refreshing={this.props.refreshing}
|
||||
onRefresh={this.props.onRefresh}
|
||||
|
||||
@@ -498,6 +498,7 @@ export default class Notes extends Abstract {
|
||||
{notes &&
|
||||
<NoteList
|
||||
onRefresh={this._onRefresh.bind(this)}
|
||||
hasRefreshControl={!Auth.get().offline()}
|
||||
onPressItem={this._onPressItem}
|
||||
refreshing={this.state.refreshing}
|
||||
onSearchChange={this.onSearchTextChange}
|
||||
|
||||
Reference in New Issue
Block a user