Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

not working i get white screen , tested in android emulator #15

Open
roysG opened this issue Aug 22, 2016 · 1 comment
Open

not working i get white screen , tested in android emulator #15

roysG opened this issue Aug 22, 2016 · 1 comment

Comments

@roysG
Copy link

roysG commented Aug 22, 2016

*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);

`

@roysG roysG changed the title not working, tested in android emulator not working i get white screen , tested in android emulator Aug 22, 2016
@roysG
Copy link
Author

roysG commented Aug 23, 2016

any update?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant