{"size": 446, "ext": "js", "max_stars_repo_path": "src/native/components/common/CustomModal.js", "max_stars_repo_name": "SatoshiWallet/login-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/native/components/common/CustomModal.js", "max_issues_repo_name": "SatoshiWallet/login-ui", "max_issues_repo_issues_event_min_datetime": "2021-03-09T21:46:57.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-09T21:46:57.000Z", "max_forks_repo_path": "src/native/components/common/CustomModal.js", "max_forks_repo_name": "SatoshiWallet/login-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.3913043478, "max_line_length": 75, "alphanum_fraction": 0.6479820628}
// @flow

import React, { Component } from 'react'
import { Modal, View } from 'react-native'

type Props = {
  style: Object,
  children: any
}

class CustomModal extends Component<Props> {
  render() {
    const Style = this.props.style
    return (
      <Modal style={Style.modal} animationType="slide" transparent visible>
        <View style={Style.container}>{this.props.children}</View>
      </Modal>
    )
  }
}

export { CustomModal }
