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
import PinView from 'react-native-pin-view' | |
// ... | |
<PinView | |
password={ [1, 3, 5, 7, 9] } | |
onSuccess={ ()=>{alert("SUCCESS")} } | |
onFailure={ ()=>{alert("FAILURE")} } | |
/> |
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
/** | |
* Get provider name. | |
* @return Name of best suiting provider. | |
* */ | |
String getProviderName() { | |
LocationManager locationManager = (LocationManager) this | |
.getSystemService(Context.LOCATION_SERVICE); | |
Criteria criteria = new Criteria(); | |
criteria.setPowerRequirement(Criteria.POWER_LOW); // Chose your desired power consumption level. |
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
import React, { Component } from 'react'; | |
import {Platform,StyleSheet,Text,View,Dimensions} from 'react-native'; | |
import { CardViewWithIcon } from "react-native-simple-card-view"; | |
type Props = {}; | |
export default class App extends Component<Props> { | |
constructor(props) { | |
super(props); | |
this.state = ({ | |
github : 0, | |
} |
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
const FormData = require('form-data'); | |
const data = new FormData(); | |
data.append('email', "demo@demo.com"); | |
data.append('password', "demo123"); | |
fetch('http://localhost:5656/', { method: 'POST', body: data }) | |
.then(function(res) { | |
return res.json(); | |
}).then(function(json) { | |
console.log(json); | |
}); |