I want to save a referral to SectionList on this.SectionList within my MessageDialog. I have tried to define the interface to allow SectionList on line 31, but that has no effect. What should I do?
TypeScript complains that:
MessageDialog.tsx(132,38): error TS2339: Property 'SectionList' does not exist on type 'SkademeldingDialog'
29 interface IComponentProps {
30 navigation: NavigationScreenProp<any, any>;
31 SectionList: any; // I tried to add SectionList here, but that did not work.
32 }
33
34 interface IDispatchToProps {
35 requestHendelsesvelger: RequestHendelsesvelgerInterface;
36 requestProsessguide: RequestProsessguideInterface;
37 }
38
39 type Props = IComponentProps & IDispatchToProps;
121 class MessageDialog extends React.Component<Props> {
128 public render() {
129
130 return (
131 <SectionList
132 ref={(sectionlist) => { this.SectionList = sectionlist; }}
137 >
138 </SectionList>