PHP 7.4.33
Preview: LogBoxInspectorFooterButton.js Size: 1.39 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
import View from '../../Components/View/View';
import StyleSheet from '../../StyleSheet/StyleSheet';
import Text from '../../Text/Text';
import LogBoxButton from './LogBoxButton';
import * as LogBoxStyle from './LogBoxStyle';
import * as React from 'react';

type ButtonProps = $ReadOnly<{
  onPress: () => void,
  text: string,
}>;

export default function LogBoxInspectorFooterButton(
  props: ButtonProps,
): React.Node {
  return (
    <SafeAreaView style={styles.button}>
      <LogBoxButton
        backgroundColor={{
          default: 'transparent',
          pressed: LogBoxStyle.getBackgroundDarkColor(),
        }}
        onPress={props.onPress}>
        <View style={styles.buttonContent}>
          <Text style={styles.buttonLabel}>{props.text}</Text>
        </View>
      </LogBoxButton>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  button: {
    flex: 1,
  },
  buttonContent: {
    alignItems: 'center',
    height: 48,
    justifyContent: 'center',
  },
  buttonLabel: {
    color: LogBoxStyle.getTextColor(1),
    fontSize: 14,
    includeFontPadding: false,
    lineHeight: 20,
  },
});

Directory Contents

Dirs: 1 × Files: 21
Name Size Perms Modified Actions
- drwxr-xr-x 2025-03-28 11:04:43
Edit Download
3.53 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.79 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.39 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.53 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
4.09 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.71 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.39 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.03 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.79 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.83 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
5.60 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.27 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.19 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.85 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
5.64 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
4.10 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
2.29 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.60 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.53 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.35 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.99 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).