{"size": 489, "ext": "js", "max_stars_repo_path": "src/components/Visor.js", "max_stars_repo_name": "leosena777/estudo-reactnative-appcalculadora", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Visor.js", "max_issues_repo_name": "leosena777/estudo-reactnative-appcalculadora", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Visor.js", "max_forks_repo_name": "leosena777/estudo-reactnative-appcalculadora", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.1111111111, "max_line_length": 59, "alphanum_fraction": 0.6073619632}
import React from 'react';
import { View, TextInput, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  visor: {
    fontSize: 20,
    backgroundColor: '#ddd',
    borderRadius: 10,
    textAlign: 'center',
  },
  box: {
    padding: 15,
  },
});

const Visor = props => (
  <View style={styles.box}>
    <TextInput
      style={styles.visor}
      placeholder="Resultado"
      editable={false}
      value={props.resultado}
    />
  </View>
);
export default Visor;
