Questions tagged [tcomb-form-native]

41 questions
7
votes
1 answer

How do I add email validation to a field with tcomb-form-native?

Using the tcomb-form-native library with react native - I've set the keyboardType to email-address. How do I add a regex or email validator to the form? Do I have to do it on the submit function (and throw a special error?) or is there a regex…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
6
votes
0 answers

Disabled dates in react native datepicker control

I want to disable some dates in date-picker control in react native. I am using "Date Picker Android" & "Date Picker IOS", also if anyone has any alternatives solutions?. the case i going to implement to my project : how i can disable weekends days…
Sherif
  • 121
  • 8
4
votes
1 answer

Validate string equality with tcomb-form-native (confirm password)

How would I validate my confirmPassword field with the tcomb-form-native library? E-mail and password fields are quite trivial, I wouldn't know how to compare to the existing value of another field in the model though. Here's my code. const Email =…
miphe
  • 1,763
  • 1
  • 20
  • 33
3
votes
0 answers

tcomb-form-native remove underline field on android

I am Using tcomb-form-native v0.6.16 react-native v0.55.4 There is underline on the field on android Since underlineColorAndroid isnt supported on this version. How to remove The underline? Any idea?
Tom Kur
  • 2,248
  • 1
  • 18
  • 28
3
votes
0 answers

React native - Calendar type

In react native app, i'm having a native datepicker component which uses the same calendar type as the device calendar type. For ios device there are more calendar types Gregorian ,buddhist calendar..etc. For example if user default device calendar…
3
votes
1 answer

How to style React Native switch component?

I'm making forms in React Native using tcomb-form-native (https://github.com/gcanti/tcomb-form-native) module. This module provides a boolean type of input, which renders a Switch component…
enguerranws
  • 8,087
  • 8
  • 49
  • 97
3
votes
1 answer

How do I tab to next input field with tcomb-form-native?

Using the tcomb-form-native library with react native - I've set the return key type to be next. How do I implement the tab/next behavior so that it focuses on the next field in the form?
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
2
votes
0 answers

Module not found: Can't resolve './datepicker'

I've got this error message when I am trying to run the command "expo start --web" Failed to compile. G:/Just Build/rn/hello/tenten/node_modules/tcomb-form-native/lib/templates/bootstrap/index.js Module not found: Can't resolve './datepicker' in…
Lakshitha Samod
  • 383
  • 3
  • 10
2
votes
1 answer

tcomb-form-native set error dynamically

Assume I have login form with the following fields: const Email = t.refinement(t.String, (str) => { const reg =…
Footniko
  • 2,682
  • 2
  • 27
  • 36
2
votes
2 answers

ReduxForm vs tcomb-form for Native Development

We used ReduxForm in our Web App and we are now trying to build a native app and it seems most of the guys are using tcomb-form. ReduxForm can be used for native development. Not sure what's the biggest advantage of using tcomb-form. I tried using…
Sateesh K
  • 1,071
  • 3
  • 19
  • 45
1
vote
1 answer

t-comb-form-native and boolean function to accept terms

I have a signup form working great, fine ! But I want to make a boolean field : "terms" and I want that when it's clicked, it allows you to validate the form. But when not clicked, you can't sign up. I don't know how I can manage to do that. My…
Kimako
  • 615
  • 2
  • 11
  • 26
1
vote
0 answers

How to use DatePicker inside tcomb-forn-native template?

I am working with React Native Expo react-native-datepicker tcomb-form-native forms using templates I did a register form that have the following struct name: t.String, email: formValidation.email, password: formValidation.password, …
EduardoUstarez
  • 603
  • 11
  • 22
1
vote
0 answers

setting default value of tcomb-form-native from mobx store

Has anyone used tcomb-form-native with mobx? How does one set the default value of the fields from a mobx store? Thanks!
Bill
  • 512
  • 4
  • 14
1
vote
1 answer

react native t-comb, is there any way to style the error message?

I have an input which I want to change (for example) its fontFamily. I couldn't find any solution in the document. is there any way to change the style of the error message?
sina farbod
  • 497
  • 4
  • 17
1
vote
1 answer

Tcomb-form-native: How to add new options to a form dynamically

I have this form in my component : this.state.customFieldsArray.length > 0 && (
Hamdi Gatri
  • 101
  • 2
  • 12
1
2 3