import React, { Component } from 'react'; import { App, Window, Text, TextInput, View, Picker, Button, Image, } from '../../../../bin'; import * as Actions from '../actions'; import { sizeConsts, typeConsts } from '../consts'; import { connect } from 'react-redux/lib/alternate-renderers'; import { bindActionCreators } from 'redux'; class Main extends Component { render() { return ( CatApi ID this.props.setId(id)} value={this.props.id} style={{ flex: 1 }} /> Size this.props.setSize(val)} > {sizeConsts.map((s, i) => ( ))} Type this.props.setType(val)} > {typeConsts.map((s, i) => ( ))}