/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict-local */ 'use strict'; const React = require('react'); const {Alert, Button, View, StyleSheet} = require('react-native'); const {RNTesterThemeContext} = require('../../components/RNTesterTheme'); function onButtonPress(buttonName) { Alert.alert(`Your application has been ${buttonName}!`); } exports.displayName = 'ButtonExample'; exports.framework = 'React'; exports.category = 'UI'; exports.title = 'Button'; exports.documentationURL = 'https://reactnative.dev/docs/button'; exports.description = 'Simple React Native button component.'; exports.examples = [ { title: 'Button with default styling', render: function(): React.Node { return (