Skip to content

Conversation

Lamonarch87
Copy link

@Lamonarch87 Lamonarch87 commented Aug 1, 2022

AppState.removeEventListener is now deprecated.
In this way you'll receive no warnings.

AppState.removeEventListenere is now deprecated.
In this way you'll receive no warnings.
until: Math.max(this.props.until, 0),
lastUntil: null,
wentBackgroundAt: null,
appStateSubscription: null
Copy link

@miguelzabalaf miguelzabalaf Sep 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lamonarch87
If you use TypeScript in your project, assign this PropType to appStateSubscription, to avoid warnings when rendering the component:

appStateSubscription: PropTypes.oneOfType([PropTypes.func, PropTypes.object])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants