Eas build for Android failing because of dependency conflicts

Hi all
I’m trying to create a android build for my Expo project, but it fails every time due to dependency conflicts.
I’m not entirely sure what’s happening but I think that some dependencies rely on React 18.2.0, which I have installed, and others rely on 18.1.0.
I’ve tried deleting the node modules and running ‘npm i’, I’ve also tried updating a dependency that seems to be at the center of a lot of problems (react-theme-provider), but none of this has worked.
Does anyone have any suggestions on how to fix this?

Here’s the error log from my last eas build:

Running "npm install" in the root dir of your repository 

2[stderr]

npm ERR!

3[stderr]

code ERESOLVE

4[stderr]

npm

5[stderr]

ERR! ERESOLVE could not resolve

6[stderr]

npm ERR!

7[stderr]

npm ERR! While resolving: react-native@0.70.5

8[stderr]

npm

9[stderr]

ERR! Found: react@18.2.0

10[stderr]

npm ERR! node_modules/react

11[stderr]

npm

12[stderr]

ERR!   react@"^18.2.0" from the root project

13[stderr]

npm ERR!   peer react@">=16.3.0" from @callstack/react-theme-provider@3.0.8

14[stderr]

npm ERR!   node_modules/@callstack/react-theme-provider

15[stderr]

npm

16[stderr]

ERR!     @callstack/react-theme-provider@"^3.0.8" from the root project

17[stderr]

npm ERR!     @callstack/react-theme-provider@"^3.0.8" from react-native-paper@5.2.0

18[stderr]

npm ERR!     node_modules/react-native-paper

19[stderr]

npm ERR!       react-native-paper@"^5.2.0" from the root project

20[stderr]

npm ERR!   24 more (@react-native-firebase/app, @react-navigation/core, ...)

21[stderr]

npm ERR! 

22[stderr]

npm ERR! Could not resolve dependency:

23[stderr]

npm ERR! peer react@"18.1.0" from react-native@0.70.5

24[stderr]

npm ERR! node_modules/react-native

25[stderr]

npm ERR!   react-native@"0.70.5" from the root project

26[stderr]

npm ERR!

27[stderr]

peer react-native@"*" from @react-native-firebase/app@16.5.0

28[stderr]

npm ERR!   node_modules/@react-native-firebase/app

29[stderr]

npm ERR!     @react-native-firebase/app@"^16.5.0" from the root project

30[stderr]

npm ERR!     1 more (@react-native-firebase/app-check)

31[stderr]

npm ERR!   14 more (@react-navigation/elements, ...)

32[stderr]

npm ERR! 

33[stderr]

npm ERR! Conflicting peer dependency: react@18.1.0

34[stderr]

npm ERR! node_modules/react

35[stderr]

npm ERR!   peer react@"18.1.0" from react-native@0.70.5

36[stderr]

npm ERR!   node_modules/react-native

37[stderr]

npm ERR!     react-native@"0.70.5" from the root project

38[stderr]

npm ERR!     peer react-native@"*" from @react-native-firebase/app@16.5.0

39[stderr]

npm ERR!     node_modules/@react-native-firebase/app

40[stderr]

npm ERR!       @react-native-firebase/app@"^16.5.0" from the root project

41[stderr]

npm ERR!       1 more (@react-native-firebase/app-check)

42[stderr]

npm ERR!     14 more (@react-navigation/elements, ...)

43[stderr]

npm ERR! 

44[stderr]

npm ERR! Fix the upstream dependency conflict, or retry

45[stderr]

npm ERR! this command with --force, or --legacy-peer-deps

46[stderr]

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

47[stderr]

npm ERR! 

48[stderr]

npm ERR! See /home/expo/.npm/eresolve-report.txt for a full report.

49[stderr]


50[stderr]

npm ERR! A complete log of this run can be found in:

51[stderr]

npm ERR!     /home/expo/.npm/_logs/2023-02-23T05_15_47_604Z-debug-0.log

52npm exited with non-zero code: 1