mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-15 09:04:04 +02:00
26 lines
593 B
JavaScript
26 lines
593 B
JavaScript
import React, { Component } from 'react';
|
|
import { connect } from 'react-redux'
|
|
import { ListView, Text, TouchableHighlight } from 'react-native';
|
|
import { Log } from 'lib/log.js';
|
|
import { ItemListComponent } from 'lib/components/item-list.js';
|
|
import { _ } from 'lib/locale.js';
|
|
|
|
class NoteListComponent extends ItemListComponent {
|
|
|
|
listView_itemPress(noteId) {
|
|
this.props.dispatch({
|
|
type: 'Navigation/NAVIGATE',
|
|
routeName: 'Note',
|
|
noteId: noteId,
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
const NoteList = connect(
|
|
(state) => {
|
|
return { items: state.notes };
|
|
}
|
|
)(NoteListComponent)
|
|
|
|
export { NoteList }; |