This file contains hidden or 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
language: node_js | |
node_js: | |
- node | |
- lts/* | |
cache: | |
directories: | |
- ~/.npm | |
- .jest | |
before_script: | |
- npm install -g npm@latest |
This file contains hidden or 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
// data | |
var data = [{"name":"ramu","id":"719","gmail":"[email protected]","ph":988989898,"points":36}, | |
{"name":"ravi","id":"445","gmail":"[email protected]","ph":4554545454,"points":122}, | |
{"name":"karthik","id":"866","gmail":"[email protected]","ph":2332233232,"points":25}] | |
// sum all data in points | |
var result = data.reduce(function(tot, arr) { | |
// return the sum with previous value | |
return tot + arr.points; |
This file contains hidden or 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
//set up fonts | |
module.exports = { | |
project: { | |
ios: {}, | |
android: {}, | |
}, | |
assets: [ | |
'path-to-font-asset' | |
] | |
}; |
This file contains hidden or 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
//set up fonts | |
module.exports = { | |
project: { | |
ios: {}, | |
android: {}, | |
}, | |
assets: [ | |
'path-to-font-asset' | |
] | |
}; |
This file contains hidden or 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
//set up fonts | |
module.exports = { | |
project: { | |
ios: {}, | |
android: {}, | |
}, | |
assets: [ | |
'path-to-font-asset' | |
] | |
}; |
This file contains hidden or 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
.header{ | |
background-color: whitesmoke; | |
} | |
.updatemodal{ | |
background-color: rgb(66, 173, 240); | |
padding: 10px 0px; | |
} | |
.pull-left{ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title> STUDYMATE</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link rel="stylesheet" href="index.css"> | |
</head> | |
<body style="margin:0px 0px"> | |
<div class="container"> |
This file contains hidden or 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 Users from './src/Users' | |
import Details from './src/Details' | |
const AppNavigator = createStackNavigator({ | |
Users: { | |
screen: Users, | |
navigationOptions:{headerTitle:'Users'} | |
}, | |
Details: { | |
screen: Details, | |
navigationOptions:{headerTitle:'Users Detail'} |
This file contains hidden or 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 from 'react'; | |
import {StyleSheet, Text, View, TouchableOpacity } from 'react-native'; | |
class Users extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { }; | |
} |
This file contains hidden or 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 from 'react'; | |
import {StyleSheet, Text, View, TouchableOpacity } from 'react-native'; | |
class Users extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { }; | |
} | |
render() { | |
return ( | |
<View style={styles.container}> |
NewerOlder