diff --git a/CrowdHandlerProvider.tsx b/CrowdHandlerProvider.tsx index 5279de2..2e8374c 100644 --- a/CrowdHandlerProvider.tsx +++ b/CrowdHandlerProvider.tsx @@ -4,9 +4,9 @@ import CHReactNativeGatekeeper from './CHReactNativeGatekeeper'; const CrowdHandlerContext = createContext(null) -export const CrowdHandlerProvider = ({apiKey, chEvents, children, debug=false}) => { +export const CrowdHandlerProvider = ({apiKey, chEvents, children, timeout, debug=false}) => { const CH_CONFIG = { CH_KEY : apiKey } - const gatekeeper = new CHReactNativeGatekeeper(CH_CONFIG, chEvents, debug); + const gatekeeper = new CHReactNativeGatekeeper(CH_CONFIG, chEvents, timeout, debug); return {children} }