UNPKG

react-universal-container

Version:

Allows React and React-Native front end Components to use the same properties, and gives you the ability to write your important code once.

12 lines (11 loc) 478 B
import React from 'react'; import { TouchableHighlight, View, Text } from 'react-native'; export class ToDoListPresentationReactNative extends React.Component { render() { let rows = this.props.items.forEach((item) => { return (React.createElement(TouchableHighlight, { onPress: () => this.props.didTapItem(item) }, React.createElement(Text, null, item.name))); }); return (React.createElement(View, null, rows)); } }