Created
September 29, 2018 00:52
-
-
Save luisnaranjo733/a70497c6066888f589afa96e7050fe13 to your computer and use it in GitHub Desktop.
Example typings for Adjust RN SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "react-native-adjust" { | |
type Environment = "sandbox" | "production"; | |
export class AdjustConfig { | |
constructor(appToken: string, environment: Environment) {} | |
static get EnvironmentSandbox(): Environment { | |
return "sandbox"; | |
} | |
static get EnvironmentProduction(): Environment { | |
return "production"; | |
} | |
} | |
export const Adjust = { | |
create: (adjustConfig: any): void => {}, | |
componentWillUnmount: (): void => {} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment