@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
11 lines • 447 B
TypeScript
import type React from 'react';
export interface Option {
/** 保留空节点 */
keepEmpty?: boolean;
}
/**
* 把 JSX 的 children 中空节点过滤,返回一个数组格式的 JSX 节点集合
* @description https://github.com/react-component/util/blob/master/src/Children/toArray.ts
*/
export default function childrenToArray(children: React.ReactNode, option?: Option): React.ReactElement[];
//# sourceMappingURL=to-array.d.ts.map