Skip to content

Instantly share code, notes, and snippets.

krissanawat101 krissnawat

Block or report user

Report or block krissnawat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View submitEmail.js
submitEmail = () => {
firebase
.auth()
.sendPasswordResetEmail(this.state.email)
.then(function() {
Alert.alert("email sent");
})
.catch(function(error) {
Alert.alert(error.message);
});
View event handle.js
<InputField
customStyle={{ marginTop: 100 }}
textColor={colors.white}
labelText="EMAIL ADDRESS"
labelTextSize={14}
labelColor={colors.white}
borderBottomColor={colors.white}
inputType="email"
onChangeText={email => this.handleEmailChange(email)}
/>
View handleEmailChange.js
handleEmailChange = email => {
this.setState({ email: email });
};
View new state.js
constructor(props) {
super(props);
this.state = {
emailAddress: ""
};
}
View InputField.js
<InputField
customStyle={{ marginTop: 100 }}
textColor={colors.white}
labelText="EMAIL ADDRESS"
labelTextSize={14}
labelColor={colors.white}
borderBottomColor={colors.white}
inputType="email"
/>
View navigationOptions.js
static navigationOptions = ({ navigation }) => ({
headerStyle: {
borderBottomWidth: 0,
elevation: 0
},
headerTransparent: true,
headerTintColor: colors.white
});
View navigationOptions.js
static navigationOptions = ({ navigation }) => ({
headerStyle: {
borderBottomWidth: 0,
elevation: 0
},
headerTransparent: true,
headerTintColor: colors.white
});
View style.js
const styles = StyleSheet.create({
wrapper: {
display: "flex",
flex: 1,
backgroundColor: colors.green01
},
form: {
marginTop: 90,
paddingLeft: 20,
paddingRight: 20,
View import_package.js
const express = require("express"); // use express for creat server
var bodyParser = require("body-parser"); // for accept parameter
const app = express(); // we create express instance name app
const Nexmo = require("nexmo"); // we create nexmo instance name Nexmo
const cors = require("cors"); // we create cors instance name cors for recive request from differrent domain
const path = require("path"); // use path for read private key data
View cors.js
app.use(cors()); // for recive cross site request
const port = 3000; // define port
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
You can’t perform that action at this time.