<commit_before>import React, { Component } from 'react';
import { Modal, Text, TouchableOpacity, View, ViewStyle, Image } from 'react-native';

import { FitModalProps } from './fitModal.props';
import { styles } from './fitModal.styles';
import { getNativeProps } from '../utils';

export class FitModal extends Component<FitModalProps, any> {
  static defaultProps = {
    animationType: 'slide'
  }

  state = {
    modalVisible: false
  }

  public pressOpen = () => {
    this.setState({ modalVisible: true });
  }

  public pressClose = () => {
    this.setState({ modalVisible: false });
  }<commit_msg>feat - hide the status bar when Modal is open, show it back when close<commit_after>import React, { Component } from 'react';
import { Modal, Text, TouchableOpacity, View, ViewStyle, Image, Platform, StatusBar } from 'react-native';

import { FitModalProps } from './fitModal.props';
import { styles } from './fitModal.styles';
import { getNativeProps } from '../utils';

export class FitModal extends Component<FitModalProps, any> {
  static defaultProps = {
    animationType: 'slide'
  }

  state = {
    modalVisible: false
  }

  public pressOpen = () => {
    this.setState({ modalVisible: true });
    StatusBar.setHidden(true, 'fade');
  }

  public pressClose = () => {
    StatusBar.setHidden(false);
    this.setState({ modalVisible: false });
  }
{'fraction_non_alphanumeric': 0.13679590343818582, 'fraction_numerical': 0.0, 'mean_word_length': 3.833922261484099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1991474', 'n_tokens_mistral': 410, 'n_tokens_neox': 399, 'n_words': 116}