1

I'm using the Agenda component from react-native-calendarsinto a react native app. When i try to use that component i get this error:

Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

This is my code

import React from 'react'
import { View } from 'react-native'
import { Agenda } from 'react-native-calendars'
const AgendaProva = () => {
 return (
 <View className='flex-1'>
 <Agenda />
 </View>
 )
}
export default AgendaProva

I've checked that I'm not calling setState into an infinite cicle but i cannot find what cause that.

If someone had the same errore can tell me how to resolve that?

Expo: sdk 53

Thx

1 Answer 1

1

Looks like the Agenda component is broken in Expo SDK 53. Here's a PR you can take a look at and patch: https://github.com/wix/react-native-calendars/pull/2664

answered May 28, 2025 at 22:33
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.