Skip to content

Instantly share code, notes, and snippets.

@montogeek
Last active January 15, 2016 06:32
Show Gist options
  • Save montogeek/586459f1a8e31f396032 to your computer and use it in GitHub Desktop.
Save montogeek/586459f1a8e31f396032 to your computer and use it in GitHub Desktop.
// Doing this:
const amountStyles = {
paddingTop: 50
}
const expenseOptions = {
fields: {
amount: {
stylesheet: amountStyles,
placeholder: '$ 0.00'
}
}
}
// Triggers this error:
Cannot read property 'normal' of undefined
textbox.js
// What is the correct structure?
@gcanti
Copy link

gcanti commented Jan 15, 2016

You can see the structure here https://github.com/gcanti/tcomb-form-native/blob/master/lib/stylesheets/bootstrap.js#L62

basically an object with 3 keys corresponding to 3 possible textbox states

@gcanti
Copy link

gcanti commented Jan 15, 2016

p.s. open an issue if something is not clear in the documentation (or you have suggestions to improve it). Also PRs are very appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment