Announcing ReForm: Making forms sound good again with ReasonReact

Announcing ReForm: Making forms sound good again with ReasonReact

☞ 

#Reactjs #javascript

  • Announcing ReForm: Making forms sound good again with ReasonReactReForm short demo, check the source out at are really complex beasts and can scale to total chaos really quickly if you don’t know how to manage all those field states and validations altogether.
  • The nicest solution in React world is to lift the state of the form to some other component, which will take care, protect and give love to your form state.
  • In ReactJS there is a nice amount of solutions for dealing with form data management (Formik, Redux Forms, etc).
  • One of the first things I wanted to try to unleash the power of Reason’s type system was in forms, that’s why we developed ReForm.
  • ReForm still on its early stages and certainly still there is a lot to improve from community suggestions, but we are already loving to deal with its thin API using it for both web and native worlds with React Native.

Forms are really complex beasts and can scale to total chaos really quickly if you don’t know how to manage all those field states and validations altogether. The nicest solution in React world is to…
Continue reading “Announcing ReForm: Making forms sound good again with ReasonReact”

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

Easily Build Forms in React Native -

  • A few things you might have to take care of… – Creating the necessary components (text inputs, select inputs, checkboxes, switches, etc)Writing/finding validation logicUpdating your components to display any errors (I always forget to do this)Updating your UI whenever you change fieldsNone of these things are difficult, but they can…
  • What We’re BuildingWe’ll be building a sign up form that has the following fields – Email (required)Username (optional)Password (required)Agree to terms (required)Defining the Form ModelThe first thing we need to do is define a model for our form — this is what will be passed to the form component and used to render the…
  • 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).
  • Then pass those options to the Form component – Let’s do the same thing to add some error the Form DesignThe final thing I want to do is modify the design of this form slightly.
  • You can do quite a few things but I’m just going to be changing the label color on this one form.

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.)…
Continue reading “Easily Build Forms in React Native – React Native Development – Medium”

Android or React Native?

  • I am a proficient iOS/Swift developer and I am keen to develop an app on the Android platform.
  • I am also a realist and I know that the time available to me is limited.
  • Q : Will my time be better spent learning React-Native – or – Android Java/Kotlin?

I’m a proficient iOS / Swift developer and I want to have a go at developing on the Android platform. How should I do that?
Continue reading “Android or React Native?”

The most popular JavaScript links of 2017 – DailyJS – Medium

📦 The most popular JavaScript links of 2017:   #ui #100DaysOfCode…

  • The most popular JavaScript links of 2017As the year draws to a close it’s the perfect time to reflect and look back over the past 12 months to see what projects got people talking and what JavaScript topics got folks clicking.To do this we’ve taken a dive into the JavaScript Weekly…
  • Ten Things A Serious JavaScript Developer Should LearnBen McCormick| Shared in July’s Issue 345One developer’s take on a question asked on Reddit earlier this year — the question attracted plenty of debate over what priorities JS developers should have.benmccormick.orgA Modern JavaScript CheatsheetBeaudru Manuel | Shared in September’s Issue 353This thorough guide explains plenty…
  • This finale, looking at the pros and cons of each, proved highly popular.sitepen.comA Set of Best Practices for JavaScript Projectshive | Shared in July’s Issue 342British design studio Hive collected together guidelines for working on JavaScript projects.
  • With over 10k stars on GitHub, the guide covers documentation, dependencies, testing, code structure and more.github.comAwait and Async Explained with Diagrams and ExamplesNikolay Grozev | Shared in October’s Issue 355This detailed tutorial explains the await/async features in Bias is Holding You Back: It’s Time to Embrace Arrow FunctionsEric Elliott | Shared…
  • When it does so without the new keyword, it’s a factory the f*ck JavaScript?Denys Dovhan | Shared in August’s Issue 346Around 40 examples of ‘quirky’ JavaScript code with unexpected results or outcomes.

As the year draws to a close it’s the perfect time to reflect and look back over the past 12 months to see what projects got people talking and what JavaScript topics got folks clicking. To do this…
Continue reading “The most popular JavaScript links of 2017 – DailyJS – Medium”

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”

Day 36: Soon Come Soon – conshus – Medium

Day 36: Soon Come Soon  #hiphop #firebase #react #coding #ux #reactjs

  • Did a little bit of coding.Monday: Since I was off for Labor Day, I decided to devote the day to really getting a lot done on my refactor project.
  • I learned A LOT about what you can and can not do in React!
  • Worked out the integration of using Google Sheets as a backend to update my info section.
  • That turned out to be a lot more difficult than I thought, but I think it will be beneficial in the end.
  • I also got the audio player working the way I want.Right now, all I have to do is add the content for the thank you and tech built with sections of the info page.

Right now, all I have to do is add the content for the thank you and tech built with sections of the info page. I’m thinking I want to add a section to put my shirt shop just incase if people want to…
Continue reading “Day 36: Soon Come Soon – conshus – Medium”

Configure Fresco in React Native – Brent Kelly – Medium

Configure Fresco in React Native  #reactnative #fresco #android #hudl #reactjs #reactjs

  • Configure Fresco in React NativeRecently while carrying out some Android performance profiling on a new React Native feature at Hudl, I noticed some potential memory issues when loading and displaying a large amount of images.
  • Under the hood the React Native Image/ component uses another Facebook library for Android called Fresco which caches images automatically (amongst other things).
  • When I dug deeper I could see that the default configuration that React Native sets for Fresco will have a cache size of about 1/4 of your apps upper allocated memory limit (which will be higher for powerful devices like my Pixel and lower for low-end ones like that HTC Wildfire your Dad is still using).
  • The question I was asking myself was how do I configure Fresco in a React Native app?
  • Turns out this is quite easy (once I dug through the React Native Java code and worked out how) so let me show you…In your android folder of your React Native project open MainApplication.java and update the getPackages() method like so…You’ll notice I’m creating a new Fresco configuration and passing in a custom Supplier to which looks something like this…I’ve kept my custom cache configuration pretty much the same as the default because I like that it caters for low-end devices but feel free to use any configuration you want.

Recently while carrying out some Android performance profiling on a new React Native feature at Hudl, I noticed some potential memory issues when loading and displaying a large amount of images. The…
Continue reading “Configure Fresco in React Native – Brent Kelly – Medium”

Add React.js Explorer to Chrome with React Developer Tools

Add #ReactJS explorer to Chrome with React Developer Tools:  #JavaScript

  • This feature is built right into Chrome and it lets developers inspect pages and edit or remove elements right from within the browser.
  • Facebook’s team created the React.js library which abstracts a layer for frontend developers to reuse certain UI elements.
  • And now, with React Developer Tools you can inspect these element hierarchies and edit them right on the page.
  • You can also study the different states and the paths of object trees including which elements are above & below other elements.
  • In the sidebar, you can browse through props and states which let you study the behavior of other elements in that same tree.

Every web developer should already know about the amazing Chrome Developer Tools. This feature is built right into Chrome and it lets developers inspect pages
Continue reading “Add React.js Explorer to Chrome with React Developer Tools”

Parashuram’s blog: Time Travel (Debugging) with ReactNative

  • Folks from the Chakra team showed off support for time travel debugging in Node at the NodeSummit .
  • The node process is then started with a -TTReplay flag that replays the actions.
  • In the VSCode ReactNative debugger, we replace Chrome with a Node process that VSCode can attach to, as a debugger.
  • Putting these together, I was able to enable time travel debugging for ReactNative using VSCode and Chakra core – is a demo.
  • In a previous blog post , I had also explained how I was using a node process to enable VSCode debug ReactNative apps.

Read the full article, click here.


@mattpodwysocki: “Awesome stuff with time travel debugging with @reactjs Native with ChakraCore”



Parashuram’s blog: Time Travel (Debugging) with ReactNative