Skip to content

Commit

Permalink
Updat to 1.0.37
Browse files Browse the repository at this point in the history
imnapo#56 add placeholder
  • Loading branch information
imnapo committed Jun 6, 2019
1 parent 2487e0b commit 7b471ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion expo-demo/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ios",
"android"
],
"version": "1.0.6",
"version": "1.0.7",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
Expand Down
2 changes: 1 addition & 1 deletion expo-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-cn-richtext-editor": "^1.0.36",
"react-native-cn-richtext-editor": "^1.0.37",
"react-native-popup-menu": "^0.14.2"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions expo-demo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3730,10 +3730,10 @@ [email protected]:
version "2.2.5"
resolved "https://registry.yarnpkg.com/react-native-branch/-/react-native-branch-2.2.5.tgz#4074dd63b4973e6397d9ce50e97b57c77a518e9d"

react-native-cn-richtext-editor@^1.0.36:
version "1.0.36"
resolved "https://registry.yarnpkg.com/react-native-cn-richtext-editor/-/react-native-cn-richtext-editor-1.0.36.tgz#1ebf494f448b6d50b7eae574507e80f554d50dbe"
integrity sha512-5EYfal9yOZaTBkxm6KpZdkD5RbNfzAbb62QBeRYj9Ev2LanhmawlGNnjX62UvXgAUZija7q0AZ6MGzKwyYayJw==
react-native-cn-richtext-editor@^1.0.37:
version "1.0.37"
resolved "https://registry.yarnpkg.com/react-native-cn-richtext-editor/-/react-native-cn-richtext-editor-1.0.37.tgz#dc1fe33b2a36e82aed3782a9523ef79c45f3bbcb"
integrity sha512-qdetqUf+9rhi2HRyd6881U57FUdMCRyNYIfuiIY98OhKVuu4F+JyUO2d55YAv7iCqBJ/vFLGOXg8Eo5x6WlzxA==
dependencies:
diff-match-patch "^1.0.4"
immutability-helper "^2.8.1"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-cn-richtext-editor",
"version": "1.0.36",
"version": "1.0.37",
"description": "RichText Editor for React-Native",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/CNRichTextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class CNRichTextEditor extends Component {
if (this.focusOnNextUpdate != -1 && this.textInputs.length > this.focusOnNextUpdate) {
const ref = this.textInputs[this.focusOnNextUpdate];
ref.focus(this.selectionOnFocus);
this.setState({focusInputIndex: this.focusOnNextUpdate});
this.focusOnNextUpdate = -1;
this.selectionOnFocus = null;
}
Expand Down Expand Up @@ -424,7 +425,7 @@ class CNRichTextEditor extends Component {
returnKeyType={this.props.returnKeyType}
foreColor={this.props.foreColor}
styleList={styles}
placeholder={index === 0 ? this.props.placeholder : undefined}
placeholder={index === 0 ? this.props.placeholder : undefined}
style={[{
flexGrow: 1,
}, this.props.textInputStyle]
Expand Down

0 comments on commit 7b471ae

Please sign in to comment.