Easily Build Forms in React Native – React Native Development – Medium

How to Easily Build Forms in React Native:

  • It makes creating forms in React Native easy by simply having to define a model for that form and you’re set!
  • Snack will automatically pull that in for us.Tip: I find that scanning the QR code from the Expo app on my device gives the best development experience.If you prefer to do this outside of Snack make sure you install tcomb-form-native via npm or yarn.What We’re BuildingWe’ll be building a sign up…
  • First we need to get the Form component (line 6) then we need to render the form and pass our model to it as the type (line 19).
  • We create an object, add a key named “fields” (since we’re modifying the fields), add a key to this object that aligns with the key in our model (“terms”), and then inside that object we set the new label.Code is easier to understand.Then pass those options to the Form componentLet’s…
  • Just about everything in the default form is customizable.As you can see tcomb-form-native makes building forms quick and easy but also gives you the flexibility you need to create forms the give users the necessary info and fit with the rest of your app (unless I’m designing of course).

If you’re building a React Native app it’s almost a guarantee that you’ll have to build at least one form. The reality is you’ll probably build quite a few (sign in, sign up, edit profile, etc.) Yeah…
Continue reading “Easily Build Forms in React Native – React Native Development – Medium”

Make things that matter, together.

  • We believe everyone deserves to work on products that will be used, enjoyed, and loved – products that matter.
  • Truly excellent products are a team effort.
  • It’s our mission to help product leaders across the globe cultivate these values in their organizations, and we’ve adopted them as well.
  • With productboard, every team can make things that matter – together.

Meet the team behind productboard and find out why we do what we do and how we do the magic.

Continue reading “Make things that matter, together.”

Mocking with GraphQL Fake

Mocking data with GraphQL Fake  #graphql #ux #reactjs #javascript #NodeJS  #graphqlfake

  • GraphQL Fake consists of a browser-based IDE and an API service and makes generating fake data much easier.
  • It uses the GraphQL query language to generate fake data in an intuitive way.
  • GraphQL works by querying fields and types.
  • The main type is Fake but there are also other types which will return predefined fields.
  • GraphQL Fake can also generate data in multiple languages.

Do you have a project in mind? Or just want to find out more about us? Whatever the reason we would love to hear from you. Send us your brief or give us a call on +44 203 772 5380
Continue reading “Mocking with GraphQL Fake”

How to Create a Redux Form with Validation and Initialized Values

Create a Redux-Form with validation and initialized values:  #ReactJS #Redux #JavaScript

  • Even better, with the latest release candidate (Redux Form 6.0.0rc3) and later, you can upgrade to the latest version of React and not have those pesky errors bring your project to a screeching halt.
  • This tutorial is going to help you set up a Redux Form that uses the latest syntax, and how to get that form set up with some simple validation and initial values.
  • Open up your console and use to install the Redux Form release candidate:

    Our tutorial will also be dependent on and , so make sure you have the latest versions of those installed as well.

  • So just underneath our dependencies, outside of the scope of the component, add the following:

    Handling the validation of our form can get messy if we do it “inline” as part of the render function of our component.

  • So to clean that up and make it reusable (plus easier to manage), create a that returns the input and logic for any errors that our field receives:

    Let’s also create a similar constant that will serve our input:

    Now we need to define the redux form required property inside the render function of the component.

With the latest version of redux form available we take a look at the best way to create a form that starts with pre-populated fields and validation.
Continue reading “How to Create a Redux Form with Validation and Initialized Values”

A Visual Guide to State in React

A Visual Guide to State in #React  #reactjs #js #jsx #javascript #webdev

  • React re-renders the app in response to the state change
  • React knows when state has changed because you tell it explicitly , by calling this.setState from inside a component.
  • React maintains state as an object
  • If you are using Redux, you actually will have one big state object that describes the entire app.
  • The point remains: change the state object to change how the app looks.

React’s “state” is one of the more difficult concepts to learn. Not just what to put in state, but what it actually is and what it’s for. And also how Redux is related to React state.
Continue reading “A Visual Guide to State in React”

How to Create a Redux-Form with Validation and Initialized Values

Create a Redux-form with validation and initialized values:  #ReactJS

  • const form = reduxForm({ form: ‘ReduxFormTutorial’, validate });
  • The form we’re making is connected to our application state, and will have an awareness of the actions we’ve created elsewhere in the project.
  • The syntax of Redux-Form has been modified to streamline and simplify the process of creating and managing your forms.
  • The tutorial is going to help you set up a Redux-Form that uses the latest syntax, and how to get that form set up with some simple validation and initial values.
  • Handling the validation of our form can get messy if we do it “inline” as part of the render function of our component.

Read the full article, click here.


@ReactiveConf: “Create a Redux-form with validation and initialized values: #ReactJS”


You want your React app to have an intelligent form that validates the data being input before sending it off to your API. You want it to be easy and straightforward to implement with the features you’d expect. Features like setting initial values of your fields. Luckily for you, Redux-Form makes all that a breeze. Even better, with the latest release candidate (Redux-Form 6.0.0rc3), you can upgrade to the latest version of React and not have those pesky unknown props errors bring your project to a screeching halt.


How to Create a Redux-Form with Validation and Initialized Values