UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

62 lines (61 loc) 2.45 kB
/** * 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. * * @flow strict-local * @format */ 'use strict'; import type { PressResponderConfig } from '../../modules/usePressEvents/PressResponder'; import type { ViewProps } from '../View'; import * as React from 'react'; import { useMemo, useRef } from 'react'; import pick from '../../modules/pick'; import useMergeRefs from '../../modules/useMergeRefs'; import usePressEvents from '../../modules/usePressEvents'; export type Props = $ReadOnly<{| accessibilityLabel?: $PropertyType<ViewProps, 'accessibilityLabel'>, accessibilityLiveRegion?: $PropertyType<ViewProps, 'accessibilityLiveRegion'>, accessibilityRole?: $PropertyType<ViewProps, 'accessibilityRole'>, accessibilityState?: $PropertyType<ViewProps, 'accessibilityState'>, accessibilityValue?: $PropertyType<ViewProps, 'accessibilityValue'>, children?: ?React.Node, delayLongPress?: ?number, delayPressIn?: ?number, delayPressOut?: ?number, disabled?: ?boolean, focusable?: ?boolean, nativeID?: $PropertyType<ViewProps, 'nativeID'>, onBlur?: $PropertyType<ViewProps, 'onBlur'>, onFocus?: $PropertyType<ViewProps, 'onFocus'>, onLayout?: $PropertyType<ViewProps, 'onLayout'>, onLongPress?: $PropertyType<PressResponderConfig, 'onLongPress'>, onPress?: $PropertyType<PressResponderConfig, 'onPress'>, onPressIn?: $PropertyType<PressResponderConfig, 'onPressStart'>, onPressOut?: $PropertyType<PressResponderConfig, 'onPressEnd'>, rejectResponderTermination?: ?boolean, testID?: $PropertyType<ViewProps, 'testID'>, |}>; const forwardPropsList = { accessibilityDisabled: true, accessibilityLabel: true, accessibilityLiveRegion: true, accessibilityRole: true, accessibilityState: true, accessibilityValue: true, children: true, disabled: true, focusable: true, nativeID: true, onBlur: true, onFocus: true, onLayout: true, testID: true }; declare var pickProps: (props: any) => any; declare function TouchableWithoutFeedback(props: Props, forwardedRef: any): React.Node; const MemoedTouchableWithoutFeedback = React.memo(React.forwardRef(TouchableWithoutFeedback)); MemoedTouchableWithoutFeedback.displayName = 'TouchableWithoutFeedback'; export default (MemoedTouchableWithoutFeedback: React.AbstractComponent<Props, React.ElementRef<any>>);