@@ -41,7 +41,7 @@ const viewabilityConfig = {
41
41
* @extends : SectionList
42
42
* @example : https://github.com/wix/react-native-calendars/blob/master/example/src/screens/expandableCalendar.js
43
43
*/
44
- const AgendaList = forwardRef ( ( props : AgendaListProps , ref : any ) => {
44
+ const AgendaList = ( props : AgendaListProps , ref : any ) => {
45
45
const {
46
46
theme,
47
47
sections,
@@ -247,17 +247,16 @@ const AgendaList = forwardRef((props: AgendaListProps, ref: any) => {
247
247
// _getItemLayout = (data, index) => {
248
248
// return {length: constants.screenWidth, offset: constants.screenWidth * index, index};
249
249
// }
250
- } ) ;
251
-
252
- export default AgendaList ;
253
-
254
- AgendaList . displayName = 'AgendaList' ;
255
- AgendaList . propTypes = {
256
- dayFormat : PropTypes . string ,
257
- dayFormatter : PropTypes . func ,
258
- useMoment : PropTypes . bool ,
259
- markToday : PropTypes . bool ,
260
- // @ts -expect-error TODO Figure out why forwardRef causes error about the number type
261
- sectionStyle : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . number , PropTypes . array ] ) ,
262
- avoidDateUpdates : PropTypes . bool
263
250
} ;
251
+
252
+ export default Object . assign ( forwardRef ( AgendaList ) , {
253
+ displayName : 'AgendaList' ,
254
+ propTypes : {
255
+ dayFormat : PropTypes . string ,
256
+ dayFormatter : PropTypes . func ,
257
+ useMoment : PropTypes . bool ,
258
+ markToday : PropTypes . bool ,
259
+ sectionStyle : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . number , PropTypes . array ] ) ,
260
+ avoidDateUpdates : PropTypes . bool
261
+ }
262
+ } ) ;
0 commit comments