Taming React Native’s ScrollView with flex – Peter Piekarczyk – Medium

  • Taming React Native’s ScrollView with flexTime and time again I find myself fighting a ScrollView to get it to work the way I want it to.
  • vs iPhone XA couple of different solutions came to mind at first:Use either View or ScrollView depending on the device height (meh)Decrease the text size until everything fit (meh)Place the “Privacy Policy” outside of the ScrollView making it sticky, but it felt weird to scroll over and still see the privacy policy.I…
  • I went to the docs for ScrollView and read over `contentContainerStyle`:These styles will be applied to the scroll view content container which wraps all of the child viewscontentContainerStyle is a step in the right direction.
  • Why?iPhone 5s with a ScrollView that doesn’t scrollReact Native Flex vs. CSS FlexIt turns out that flex functions a bit differently in React Native than it does in CSS which is why setting flex: 1 didn’t work the way I thought it would.In CSS, flex is short-hand for controlling the following flex:…
  • Why does this matter?The solution has to do with the implementation differences of flex and flexGrow in React Native.Since flexGrow functions the same way, we can easily solve this problem by updating our contentContainerStyle to flexGrow: 1 instead:Using flexGrow vs. flex in contentContainerStyle propiPhone 5s with a ScrollView that scrolls correctlyHopefully…

Time and time again I find myself fighting a ScrollView to get it to work the way I want it to. Is it flex? Is it the ScrollView? It was time I wrote an article. My favorite scenario, the one that…
Continue reading “Taming React Native’s ScrollView with flex – Peter Piekarczyk – Medium”

Unopinionated, standard compliant flexbox component. No propietary APIs. Nothing but flexbox #ReactJS

  • No more , , , , or any other arbitrarily named and spec ed components to layout your apps.
  • No more , , , or any other arbitrarily named and spec ed props to layout your apps.
  • It might be a good idea to see your components and know how they are laid out without jumping between css files or arbitrary, layout-exclusive components specifications.
  • Since, well, flexbox is a complete solution to build layouts.
  • If you need to use a tag other than for the layout, like or , you can pass an extra prop to the component:

    which will render to this:

    Take a look at Flexbox PropTypes.

flexbox-react – Unopinionated, standard compliant flexbox component. No propietary APIs. Nothing but flexbox.
Continue reading “Unopinionated, standard compliant flexbox component. No propietary APIs. Nothing but flexbox #ReactJS”

BTS: #GraphQLRadio – GraphQL Weekly – Medium

Introducing #GraphQLRadio  #apollostack #graphql #react #javascript #reactjs

  • BTS: #GraphQLRadioI am extremely excited to announce that today we are publicly releasing our new podcast, GraphQL Radio!It’s been a great experience ideating the direction of this show, so I just want to give you all a little behind the scenes look at how we got here!Before we begin…What is GraphQL Radio?GraphQL Radio aims to fill a gap in the GraphQL community by providing really informational content from notable library authors, companies, and core contributors.
  • Our main goal was to help give valuable information from the most novice GraphQL user to the most seasoned vets.Having experience with podcasts, and listening to so many, we knew that we wanted the format of the show to be simple: a technical conversation.
  • You can imagine conversations can lead to code samples, which ultimately provides an amazing content experience for everyone watching!Who are we?It all started with this tweet:Immediately Johannes Schickling, the CEO of Graphcool, reached out to me and had told me that Graphcool was interested in making a podcast as well.
  • Correct it for the next show.Digestable ContentLastly we wanted to provide a website for people to come view the show and all its available formats:You can view all our episodes here: www.graphqlradio.comWhat’s up next?Well first, I encourage you to checkout our episode with Danielle Man.
  • It was such an amazing conversation with a fellow engineer, I’m really happy with how it turned out.You can view that episode here.This next week we have a really nice treat for everyone, and something surely will make this show even more exciting.

I am extremely excited to announce that today we are publicly releasing our new podcast, GraphQL Radio! It’s been a great experience ideating the direction of this show, so I just want to give you…
Continue reading “BTS: #GraphQLRadio – GraphQL Weekly – Medium”

Introduction to Progressive Web Apps with React.js with George Chen Tickets, Wed, 22 Mar 2017 at 5:30 PM

Introduction to Progressive Web Apps with React.js with George Chen

  • Progressive web apps (PWA) use the latest web technologies to create native-like performance and user experiences.
  • By implementing PWA, businesses such as Google, AliExpress, and FlipKart have observed a 50-100% increase in retention and conversion rates.
  • In this presentation we will learn the core concepts of PWA such as service worker, app manifest, and push notification.
  • We will also look at how to use these exciting technologies to add offline capabilities to a React.js app as well as improve its speed and performance.
  • He enjoys learning new technologies and sharing findings with the community.

Eventbrite – Winnipeg Dot Net User Group presents Introduction to Progressive Web Apps with React.js with George Chen – Wednesday, 22 March 2017 at Millennium Library Buchwald Room, 2nd floor, Winnipeg, MB. Find event and ticket information.
Continue reading “Introduction to Progressive Web Apps with React.js with George Chen Tickets, Wed, 22 Mar 2017 at 5:30 PM”

Relay Deep Dive with Greg Hurrell (wincent) from Facebook Engineering

6 days to my #relayjs talk. Presented at FB today. Looking forward to doing it at the meetup

  • Relay Deep Dive with Greg Hurrell (wincent) from Facebook Engineering
  • ReactJS, React Native, Relay, and GraphQL. Declarative vs imperative.
  • ZeeMee provides the venue and food/drinks.
  • Start a Meetup Group Start a Meetup Group
  • The session will be a technical deep dive and have time for Q&A.

Read the full article, click here.


@wincent: “6 days to my #relayjs talk. Presented at FB today. Looking forward to doing it at the meetup”


Join as we host Greg Hurrell (wincent), a Facebook engineer and core contributor to Facebook's Relay — the glue between ReactJS and GraphQL — for a deep dive session. This will be good!
The ses


Relay Deep Dive with Greg Hurrell (wincent) from Facebook Engineering