1 // Copyright 2018-present 650 Industries. All rights reserved.
2 
3 /**
4  This class determines the order of `ExpoReactDelegateHandler`.
5 
6  The priority is only for internal use and we maintain a pre-defined `SUPPORTED_MODULE` map.
7  */
8 internal struct ModulePriorities {
9   static let SUPPORTED_MODULE = [
10     // {key}: {value}
11     // key: node package name
12     // value: priority value, the higher value takes precedence
13     "expo-screen-orientation": 10,
14     "expo-updates": 5
15   ]
16 
getnull17   static func get(_ packageName: String) -> Int {
18     return SUPPORTED_MODULE[packageName] ?? 0
19   }
20 }
21