@nativeframe/react-native-native-frame
Version:
React native package for streaming
13 lines (10 loc) • 458 B
text/typescript
import type { HostComponent, ViewProps } from 'react-native';
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
export interface NativeProps extends ViewProps {
text?: string;
onClicked?: BubblingEventHandler<{}> | null;
}
export default codegenNativeComponent<NativeProps>(
'NFButton'
) as HostComponent<NativeProps>;