Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const refreshAppCenterScreen = navigation.getParam('refreshAppCenterScreen');
// Initial press: the function is not defined yet so nothing to refresh.
if (refreshAppCenterScreen) {
refreshAppCenterScreen();
}
defaultHandler();
}
}
state = {
appCenterEnabled: false,
pushEnabled: false,
authEnabled: false,
installId: '',
sdkVersion: AppCenter.getSdkVersion(),
startupMode: StartupModes[0],
appSecret: AppSecrets[0],
userId: '',
accountId: '',
authStatus: 'Authentication status unknown'
}
async componentDidMount() {
await this.refreshUI();
const startupModeKey = await AsyncStorage.getItem(STARTUP_MODE);
for (let index = 0; index < StartupModes.length; index++) {
const startupMode = StartupModes[index];
if (startupMode.key === startupModeKey) {
this.state.startupMode = startupMode;
break;
}
const refreshAppCenterScreen = navigation.getParam('refreshAppCenterScreen');
// Initial press: the function is not defined yet so nothing to refresh.
if (refreshAppCenterScreen) {
refreshAppCenterScreen();
}
defaultHandler();
}
}
state = {
appCenterEnabled: false,
pushEnabled: false,
authEnabled: false,
installId: '',
sdkVersion: AppCenter.getSdkVersion(),
startupMode: StartupModes[0],
userId: '',
accountId: '',
authStatus: 'Authentication status unknown'
}
async componentDidMount() {
await this.refreshUI();
const startupModeKey = await AsyncStorage.getItem(STARTUP_MODE);
for (let index = 0; index < StartupModes.length; index++) {
const startupMode = StartupModes[index];
if (startupMode.key === startupModeKey) {
this.state.startupMode = startupMode;
break;
}
}
constructor() {
super();
this.state = {
wrapperSdkVersion: AppCenter.getSdkVersion()
};
}
constructor() {
super();
this.state = {
wrapperSdkVersion: AppCenter.getSdkVersion()
};
}
constructor() {
super();
this.state = {
wrapperSdkVersion: AppCenter.getSdkVersion()
};
}
constructor(props: any) {
super(props);
this.state = {
wrapperSdkVersion: AppCenter.getSdkVersion()
};
}