import { connect } from 'react-redux' import { Button } from 'react-native'; import { Log } from 'lib/log.js'; import { Note } from 'lib/models/note.js'; import { NotesScreenUtils } from 'lib/components/screens/notes-utils.js' const React = require('react'); const { Dimensions, StyleSheet, ScrollView, View, Image, Text, } = require('react-native'); const { Component } = React; const window = Dimensions.get('window'); const styles = StyleSheet.create({ menu: { flex: 1, backgroundColor: 'white', padding: 20, }, name: { position: 'absolute', left: 70, top: 20, }, item: { fontSize: 14, fontWeight: '300', paddingTop: 5, }, button: { flex: 1, textAlign: 'left', } }); class SideMenuContentComponent extends Component { folder_press(folder) { this.props.dispatch({ type: 'SIDE_MENU_CLOSE', }); NotesScreenUtils.openNoteList(folder.id); } render() { let buttons = []; for (let i = 0; i < this.props.folders.length; i++) { let f = this.props.folders[i]; let title = f.title; buttons.push(