UNPKG

@fruits-chain/react-native-xiaoshu

Version:
26 lines (25 loc) 1.2 kB
import React from 'react'; import type { TextStyle, StyleProp, TextProps, TouchableWithoutFeedbackProps, ViewProps } from 'react-native'; export * from './color'; export * from './z-index'; export { default as easing } from './easing'; export * from './interceptor'; export * from './typeof'; export * from './format/number'; /** 空函数,用于一些没有必要实际需要的回调,同时避免抛出错误 */ export declare function noop(): void; /** 获取默认值 */ export declare const getDefaultValue: <T>(value: T, defaultValue: T) => T; /** 渲染类文字的 JSX */ export declare const renderTextLikeJSX: (node: React.ReactNode, style: StyleProp<TextStyle>, restProps?: Omit<TextProps, 'style'>) => JSX.Element; /** 可点击元素的属性字段 */ export declare const touchablePropsFields: (keyof TouchableWithoutFeedbackProps)[]; /** * 是一个点击节点 */ export declare const isTouchableNode: (props: TouchableWithoutFeedbackProps) => boolean; /** * 挑选出点击事件的属性 */ export declare const pickTouchablePropsField: (props: Partial<ViewProps>) => Partial<ViewProps>; export declare const omitTouchablePropsField: (props: ViewProps) => Partial<ViewProps>;