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

Commit de6338e

Browse files
committed
upgraded RN verions
1 parent e999e31 commit de6338e

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "HackathonStarter",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start"
@@ -9,7 +9,7 @@
99
"lodash": "^4.15.0",
1010
"react": "15.3.1",
1111
"react-native": "0.32.0",
12-
"react-native-elements": "0.5.2",
12+
"react-native-elements": "0.5.4",
1313
"react-native-vector-icons": "^2.1.0",
1414
"react-redux": "^4.4.5",
1515
"redux": "^3.5.2"

src/contact/Contact.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ import {
1414
let styles = {}
1515

1616
class Contact extends Component {
17+
componentDidMount () {
18+
console.log('refs:', this.refs)
19+
}
1720
render () {
21+
console.log('refs from Contact:', this.refs)
1822
return (
1923
<ScrollView style={{backgroundColor: 'white'}}>
2024
<View style={styles.headingContainer}>
2125
<Icon color='white' name='pets' size={62} />
2226
<Text style={styles.heading}>Forms</Text>
2327
</View>
24-
<FormLabel containerStyle={styles.labelContainerStyle}>Name</FormLabel>
25-
<FormInput placeholder='Please enter your name...' />
28+
<FormLabel
29+
containerStyle={styles.labelContainerStyle}>Name</FormLabel>
30+
<FormInput
31+
ref='form'
32+
containerRef='containerRefYOYO'
33+
textInputRef='textInputRefYOYOYO'
34+
placeholder='Please enter your name...' />
2635
<FormLabel containerStyle={styles.labelContainerStyle}>Address</FormLabel>
27-
<FormInput placeholder='Please enter your address...' />
36+
<FormInput ref='form1' placeholder='Please enter your address...' />
2837
<FormLabel containerStyle={styles.labelContainerStyle}>Phone</FormLabel>
2938
<FormInput placeholder='Please enter your phone number...' />
3039
<Button

src/home/Home.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { Component } from 'react'
22
import { ScrollView, View, StyleSheet, Platform } from 'react-native'
3-
import Text from 'HSText'
43
import colors from 'HSColors'
54
import socialColors from 'HSSocialColors'
65
import fonts from 'HSFonts'
76
import Icon from 'react-native-vector-icons/MaterialIcons'
87

98
import {
9+
Text,
1010
Button
1111
} from 'react-native-elements'
1212

src/images/avatar1.jpg

70.6 KB
Loading

src/more/More.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class More extends Component {
131131
list2.map((l, i) => (
132132
<ListItem
133133
roundAvatar
134-
avatar={l.avatar_url}
134+
avatar={{ uri: l.avatar_url }}
135135
key={i}
136136
onPress={log}
137137
title={l.name}
@@ -140,6 +140,11 @@ class More extends Component {
140140
))
141141
}
142142
</List>
143+
<ListItem
144+
roundAvatar
145+
title='Nader Dabit'
146+
avatar={require('../images/avatar1.jpg')}
147+
/>
143148
</ScrollView>
144149
)
145150
}

0 commit comments

Comments
 (0)