Skip to content

Commit 301257e

Browse files
Updated provider to pass timeout settings to gatekeeper
1 parent d203666 commit 301257e

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)