This repository was archived by the owner on Jul 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @format
3+ * @flow strict-local
4+ */
5+
6+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent' ;
7+ import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands' ;
8+ import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes' ;
9+ import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' ;
10+ import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes' ;
11+ import * as React from 'react' ;
12+
13+ type NativeProps = $ReadOnly < { |
14+ ...ViewProps ,
15+ color ?: string ,
16+ step ?: Int32 ,
17+ | } > ;
18+
19+ export type AnswerViewerViewType = HostComponent < NativeProps > ;
20+
21+ interface NativeCommands {
22+ + changeBackgroundColor : (
23+ viewRef : React . ElementRef < AnswerViewerViewType > ,
24+ color : string ,
25+ ) = > void ;
26+ }
27+
28+ export const Commands : NativeCommands = codegenNativeCommands < NativeCommands > ( {
29+ supportedCommands : [ 'changeBackgroundColor' ] ,
30+ } ) ;
31+
32+ export default ( codegenNativeComponent < NativeProps > (
33+ 'AnswerViewer' ,
34+ ) : AnswerViewerViewType ) ;
You can’t perform that action at this time.
0 commit comments