Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
upgraded RN verions
Browse files Browse the repository at this point in the history
  • Loading branch information
dabit3 committed Sep 22, 2016
1 parent e999e31 commit de6338e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HackathonStarter",
"version": "0.5.0",
"version": "0.5.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
Expand All @@ -9,7 +9,7 @@
"lodash": "^4.15.0",
"react": "15.3.1",
"react-native": "0.32.0",
"react-native-elements": "0.5.2",
"react-native-elements": "0.5.4",
"react-native-vector-icons": "^2.1.0",
"react-redux": "^4.4.5",
"redux": "^3.5.2"
Expand Down
15 changes: 12 additions & 3 deletions src/contact/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,26 @@ import {
let styles = {}

class Contact extends Component {
componentDidMount () {
console.log('refs:', this.refs)
}
render () {
console.log('refs from Contact:', this.refs)
return (
<ScrollView style={{backgroundColor: 'white'}}>
<View style={styles.headingContainer}>
<Icon color='white' name='pets' size={62} />
<Text style={styles.heading}>Forms</Text>
</View>
<FormLabel containerStyle={styles.labelContainerStyle}>Name</FormLabel>
<FormInput placeholder='Please enter your name...' />
<FormLabel
containerStyle={styles.labelContainerStyle}>Name</FormLabel>
<FormInput
ref='form'
containerRef='containerRefYOYO'
textInputRef='textInputRefYOYOYO'
placeholder='Please enter your name...' />
<FormLabel containerStyle={styles.labelContainerStyle}>Address</FormLabel>
<FormInput placeholder='Please enter your address...' />
<FormInput ref='form1' placeholder='Please enter your address...' />
<FormLabel containerStyle={styles.labelContainerStyle}>Phone</FormLabel>
<FormInput placeholder='Please enter your phone number...' />
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/home/Home.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { Component } from 'react'
import { ScrollView, View, StyleSheet, Platform } from 'react-native'
import Text from 'HSText'
import colors from 'HSColors'
import socialColors from 'HSSocialColors'
import fonts from 'HSFonts'
import Icon from 'react-native-vector-icons/MaterialIcons'

import {
Text,
Button
} from 'react-native-elements'

Expand Down
Binary file added src/images/avatar1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/more/More.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class More extends Component {
list2.map((l, i) => (
<ListItem
roundAvatar
avatar={l.avatar_url}
avatar={{ uri: l.avatar_url }}
key={i}
onPress={log}
title={l.name}
Expand All @@ -140,6 +140,11 @@ class More extends Component {
))
}
</List>
<ListItem
roundAvatar
title='Nader Dabit'
avatar={require('../images/avatar1.jpg')}
/>
</ScrollView>
)
}
Expand Down

0 comments on commit de6338e

Please sign in to comment.