Skip to content

@realm/react: Passing an app as a prop to AppProvider #6785

Closed
@sync-by-unito

Description

Add the ability for the AppProvider to take in an app as a prop instead of configuration parameters, i.e.

const realmApp = new Realm.App(...);

<AppProvider
	...
	app={realmApp}
	...
>
</AppProvider> 

Similar to https://jira.mongodb.org/browse/RJS-2648, it is likely that during the manual realm scenario, a user would also like to manage and pass the app manually.

This would help completely handle cases such as using react-navigation

#6233

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions