Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use placeholder instead of default text
Browse files Browse the repository at this point in the history
  • Loading branch information
whs committed May 5, 2016
1 parent 6165bf5 commit 45ba128
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/Editor/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Editor extends Component {
_onAddButton = () => {
Realm.write(() => {
this.file.slides.push({
text1: 'Enter title',
text1: '',
text2: '',
image: '',
});
Expand Down
2 changes: 1 addition & 1 deletion components/FileList/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class FileList extends Component {
id: lastId + 1,
name: name,
slides: [{
text1: 'Enter title',
text1: '',
text2: '',
image: '',
}],
Expand Down
8 changes: 4 additions & 4 deletions components/Slide/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export default class Slide extends Component {
<TextInput style={[styles.text1, styles.textEdit, {
color: this.props.slide.text1Color,
textAlign: textAlign,
height: 40,
}]} key="text1" value={this.state.text1} underlineColorAndroid="transparent" onChangeText={(text) => this.setState({text1: text})} />,
height: 60,
}]} key="text1" value={this.state.text1} underlineColorAndroid="transparent" onChangeText={(text) => this.setState({text1: text})} placeholder="Tap to enter title" />,
<TextInput style={[styles.text2, styles.textEdit, {
color: this.props.slide.text2Color,
textAlign: textAlign,
height: 40,
}]} key="text2" value={this.state.text2} underlineColorAndroid="transparent" onChangeText={(text) => this.setState({text2: text})} />
height: 60,
}]} key="text2" value={this.state.text2} underlineColorAndroid="transparent" onChangeText={(text) => this.setState({text2: text})} placeholder="Tap to enter subtitle" />
];
}else{
text = [
Expand Down

0 comments on commit 45ba128

Please sign in to comment.