// @flow import React, {Component} from 'react'; import { AppRegistry, StyleSheet, Text, View, Platform, ScrollView, Image, } from 'react-native'; export default class Assert extends Component { props : { expect : any, actual : any }; constructor(props) { super(props) } render() { return ( { this.getAssertion() ? '✅' : '×' } Assertion description expect {this.props.expect} actual {this.props.actual} ) } getAssertion() { return this.props.expect === this.props.actual } }