diff --git a/lib/src/MarkdownEditor.js b/lib/src/MarkdownEditor.js index 8564f4b..4b75f05 100644 --- a/lib/src/MarkdownEditor.js +++ b/lib/src/MarkdownEditor.js @@ -115,7 +115,7 @@ export default class MarkdownEditor extends React.Component { render() { const WrapperView = Platform.OS === 'ios' ? KeyboardAvoidingView : View; - const { Formats, markdownButton } = this.props; + const { placeholder, Formats, markdownButton } = this.props; const { text, selection, showPreview } = this.state; return ( @@ -126,7 +126,7 @@ export default class MarkdownEditor extends React.Component { onChangeText={this.changeText} onSelectionChange={this.onSelectionChange} value={text} - placeholder={'Write a long message'} + placeholder={placeholder} ref={textInput => (this.textInput = textInput)} selection={selection} /> diff --git a/package.json b/package.json index de602a2..6d75090 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,7 @@ "test:prettier": "prettier-check --single-quote --jsx-bracket-same-line --trailing-comma all --print-width 100 `find lib -name \"*.js\"`" }, "dependencies": { - "react": "16.0.0-alpha.12", - "react-native": "0.47.1", - "react-native-markdown-view": "^1.0.0" + "react-native-markdown-view": "^1.1.4" }, "devDependencies": { "babel-jest": "20.0.3",