You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
import {
LazyloadScrollView,
LazyloadView
} from 'react-native-lazyload';
import data from './MOCK_DATA.json';
class AwesomeProject extends Component {
render() {
let start = ~~(Math.random() * 900);
let list = data.splice(start, 100);
return2 (
{list.map((file, i) =>
{file.id}
{file.first_name} {file.last_name}
email: {file.email}
last visit ip: {file.ip_address}
*If you copy the code, change the return2 to return, i did it cause guthub is remove all the lines inside the return
Code:
`
/**
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
import {
LazyloadScrollView,
LazyloadView
} from 'react-native-lazyload';
import data from './MOCK_DATA.json';
class AwesomeProject extends Component {
render() {
let start = ~~(Math.random() * 900);
let list = data.splice(start, 100);
return2 (
{list.map((file, i) =>
{file.id}
{file.first_name} {file.last_name}
email: {file.email}
last visit ip: {file.ip_address}
<Text style={[styles.genderText, file.gender === 'Male' ? styles.male : styles.female]}>{file.gender}
)}
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#F5FCFF'
},
content: {
paddingTop: 20,
justifyContent: 'center',
alignItems: 'center'
},
view: {
height: 70,
width: 320,
paddingVertical: 5,
borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: '#666'
},
file: {
width: 320,
flex: 1,
flexDirection: 'row'
},
id: {
width: 50,
alignItems: 'center',
justifyContent: 'center'
},
idText: {
fontSize: 10
},
detail: {
justifyContent: 'space-around',
flex: 1
},
name: {
textAlign: 'center',
lineHeight: 15,
color: '#666',
marginBottom: 5
},
email: {
fontSize: 10,
color: 'blue',
textDecorationColor: 'blue',
textDecorationLine: 'underline',
textDecorationStyle: 'solid'
},
ip: {
fontSize: 12,
color: 'grey'
},
gender: {
width: 50,
alignItems: 'center',
justifyContent: 'center'
},
genderText: {
fontSize: 10
},
title: {
color: '#333',
fontSize: 12
},
male: {
color: 'skyblue'
},
female: {
color: 'pink'
}
});
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
`
The text was updated successfully, but these errors were encountered: