FlatList error in expo 48

Please provide the following:

  1. SDK Version: 48.0.0
  2. Platforms(Android/iOS/web/all): Android

I updated expo to 48.0.0 and now I have the app crashing with the FlatList, specifically when pull to refresh is implemented.

        <FlatList
          contentContainerStyle={[s`py-6`]}
          data={grades}
          keyExtractor={(grade, index) => `student-grade-card-${index}`}
          ListEmptyComponent={
            <AppText style={s`italic self-center`}>No content to show.</AppText>
          }
          onRefresh={handleRefresh}
          refreshing={refreshing}
          renderItem={renderGrade}
        />

If I comment onRefresh and refreshing everything works, but if i re-enable them I get errors like:

Error calling JSTimers.callTimers
undefined is not a function

Anyone with the same problem? How di you fix it?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.