Skip to content

Commit

Permalink
Merge pull request #113 from guisehn/fix-readme-example
Browse files Browse the repository at this point in the history
fix(#112): fix 'ref' usage on README.md + remove semicolons on 'ref' causing compilation issues
  • Loading branch information
Ben-hur Santos Ott authored Dec 16, 2018
2 parents e65b12e + e79a62d commit db5faaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class MyComponent extends Component {
// the type is required but options is required only for some specific types.
return (
<TextInputMask
refInput={(ref) => this.myDateText = ref;}
ref={(ref) => this.myDateText = ref}
type={'datetime'}
options={{
format: 'DD-MM-YYYY HH:mm:ss'
Expand Down Expand Up @@ -116,7 +116,7 @@ const Textfield = MKTextField.textfield()


<TextInputMask
refInput={(ref) => this.myDateText = ref;}
ref={(ref) => this.myDateText = ref}
type={'money'}
style={styles.input}
customTextInput={Textfield}
Expand Down Expand Up @@ -148,7 +148,7 @@ export default class App extends React.Component {
return (
<View style={styles.container}>
<TextInputMask
refInput={(ref) => this.myDateText = ref;}
ref={(ref) => this.myDateText = ref}
// here we set the custom component and their props.
customTextInput={Kaede}
customTextInputProps={{
Expand Down

0 comments on commit db5faaf

Please sign in to comment.