A modal has already been added to the<App />component.
But its display is somehow wrong.
Modal window should be displayed when pressing on Cause error
The background of the modal must be transparent.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task

App.js

import React from 'react';
import { Text, View, StyleSheet, TouchableOpacity, Modal } from 'react-native';

export default function App() {
  return (
    <View style={styles.container}>
      <Modal>
        <View style={styles.container}>
          <View style={styles.modalView}>
            <Text>Something went wrong</Text>
            <Text>Please, try again later</Text>
          </View>
        </View>
      </Modal>
      <TouchableOpacity style={styles.button}>
        <Text style={styles.buttonLabel}>Cause error</Text>
      </TouchableOpacity>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  button: {
    borderRadius: 8,
    backgroundColor: '#F44336',
    paddingVertical: 8,
    paddingHorizontal: 24,
  },
  buttonLabel: {
    color: 'white',
    fontWeight: 'bold',
  },
  modalView: {
    padding: 20,
    borderRadius: 8,
    backgroundColor: 'white',
    borderColor: 'black',
    borderWidth: 2,
  },
});

app.json

{
  "expo": {
    "name": "1",
    "slug": "1",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      }
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}