Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onPress={() => {
Keyboard.dismiss();
Actions.register();
}}
backgroundColor={buttonColor}
onPress={()=>Actions.register()}
buttonText='Sign up now !'
this.state.dataRecord = this.props.ds.record.getRecord('data');
this.state.profileRecord.whenReady(() => {
this.state.dataRecord.whenReady(() => {
if (!this.state.profileRecord.get("onboardingComplete")) {
Actions.onboard({ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
} else {
var configurePush = this.props.configurePush.bind(this)
configurePush()
Actions.reset('drawer', {ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
Actions.home({ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
}
})
})
} else {
if(data.needsUsername) {
Actions.register({ds: this.props.ds, idToken: user.idToken, configurePush: this.props.configurePush});
}
}
});
})
onPress={() => Actions.register()}
>
Actions.register()} icon toIcon="user" />
Actions.register()} text='Register' />
Actions.home()} text='Home' />
onPress={() => Actions.register()}
style={[styles.registerText, styles.bottomText]}
handlePressSignUp() {
Actions.register();
}
handlePressRegister = () => {
NavigationActions.drawerClose()
NavigationActions.register()
}
handlePressForgotPassword = () => {
Actions.register()}>