Skip to content

Commit 091667d

Browse files
Merge pull request #2 from Crowdhandler/react-native-timeout-settings
Updated provider to pass timeout settings to gatekeeper
2 parents 25752a1 + 301257e commit 091667d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CrowdHandlerProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import CHReactNativeGatekeeper from './CHReactNativeGatekeeper';
44

55
const CrowdHandlerContext = createContext(null)
66

7-
export const CrowdHandlerProvider = ({apiKey, chEvents, children, debug=false}) => {
7+
export const CrowdHandlerProvider = ({apiKey, chEvents, children, timeout, debug=false}) => {
88
const CH_CONFIG = { CH_KEY : apiKey }
9-
const gatekeeper = new CHReactNativeGatekeeper(CH_CONFIG, chEvents, debug);
9+
const gatekeeper = new CHReactNativeGatekeeper(CH_CONFIG, chEvents, timeout, debug);
1010
return <CrowdHandlerContext.Provider value={gatekeeper}>{children}</CrowdHandlerContext.Provider>
1111
}
1212

0 commit comments

Comments
 (0)