Readit News logoReadit News
brentvatne commented on State of React Native 2018   facebook.github.io/react-... · Posted by u/acemarke
iaml · 8 years ago
re: [0] you can probably declare fetch as global variable in your linter config to fix that.
brentvatne · 8 years ago
brentvatne commented on State of React Native 2018   facebook.github.io/react-... · Posted by u/acemarke
com2kid · 8 years ago
My largest issue with RN is that despite being "cross platform" there are numerous times it is not, and the documentation may or may not reflect this. From the image cache policy for remote objects not being obeyed on Android, resulting in all images being cached all the time (open for multiple years, never even acknowledged), to basic features like tiling an image just now coming to Android. Heck even making something as simple as the keyboard not occlude the field being typed into is not cross platform, with the docs just saying that some props may work better than others on android versus iOS.

That and just how very fragile the entire JS eco-system is. Running NPM Update ranges from doing not much at all, to breaking my entire system making deleting all of node_modules the only realistic fix.

React Native is partially magic, and JSX is really nice to work with. But the complicated things take minutes[0], and the simplest things take hours[1].

All that said, I'm still thankful to Facebook for putting out this project. Even if it does behave... weird at times.

[0] Networking? Stupid easy. Even if my linter is unhappy about 'fetch' not being declared anywhere. Great libraries mean things that are normally a nightmare, like, authentication become really easy. And the community has a to of tutorials.

[1] Want to make an image responsive? Or just learn how to render an image properly at all? It is the opposite of intuitive. Also React-Navigation is bad-but-getting-better to work with.

brentvatne · 8 years ago
re: react-navigation, I am one of the two primary maintainers of this project and I started working on it in January of this year because it was in a pretty rough state. I think it has come a long way in that time even though there is still plenty to do. I would love to hear what simple things have taken hours for you when using it, feel free to reach out on Twitter in DM @notbrent or email brent at expo dot io. Also, the roadmap for our next major version is here: https://github.com/react-navigation/react-navigation/issues/....
brentvatne commented on Yarn 1.0: Workspaces, auto-merging lockfiles, selective versions resolutions   code.facebook.com/posts/2... · Posted by u/cpojer
marricks · 8 years ago
What was the compelling reason to make Yarn instead of contributing to npm, perhaps ownership?

Seems like they could given everyone a lot of improvements and instead they fractured the market a bit.

brentvatne · 8 years ago
I can't speak to the original intentions of the authors, but I suspect it might be related to difficulty of making significant changes to the project due to some strongly held beliefs.

An example: react-native depends on alpha/beta versions of react, and libraries in the react-native ecosystem tend to include a peer dependency on react (eg: react >= 15). React 16.0.0-alpha.12 will not satisfy this range, but 16.0.0 will. It's unclear to me in what way it is useful to exclude pre-release versions, and this causes a lot of confusion for users. I posted about it here: https://github.com/npm/npm/issues/8854 and it was shutdown for ideological reasons, rather than practical considerations. On the other hand, someone submitted a patch to yarn to improve this behaviour and it was quickly accepted: https://github.com/yarnpkg/yarn/pull/3361.

brentvatne commented on GitHub announcements: Marketplace, Apps and GraphQL API   github.com/blog/2359-intr... · Posted by u/joewadcan
brentvatne · 9 years ago
There is some undesirable horizontal scrolling on this page for me (mbp 13") -- fixed by adding `overflow: hidden` to `div role="main"` element.
brentvatne commented on Repl.it – React Native mobile apps in browser   repl.it/site/react_native... · Posted by u/nabraham
findjashua · 9 years ago
how does repl.it compare with expo's snack (snack.expo.io)?
brentvatne · 9 years ago
It integrates with it using the snack-sdk: https://github.com/expo/snack-sdk

repl.it integrates this with their classrooms product to make it into a structured learning tool with assignments and automatic evaluation of solutions. Direct link to the course: https://repl.it/community/classrooms/17650

brentvatne commented on Apollo Client 1.0: A flexible, community-focused JavaScript GraphQL client   dev-blog.apollodata.com/a... · Posted by u/djmashko2
dullgiulio · 9 years ago
What is the expo.io client? The site you linked has a broken certificate and then just replies "default backend - 404".
brentvatne · 9 years ago
Sorry about that, the site was down for about 6 minutes around when you visited it.
brentvatne commented on Apollo Client 1.0: A flexible, community-focused JavaScript GraphQL client   dev-blog.apollodata.com/a... · Posted by u/djmashko2
brentvatne · 9 years ago
We use Apollo for the http://expo.io/ client and have found it to be extremely pleasant to use. I love how flexible it is too -- you can use it for weird things like building an ORM layer for SQLite. For example: https://github.com/brentvatne/apollo-sqlite-experiment/blob/... -- the queries here go through a custom NetworkInterface which use a pretty simple graphql resolver (https://github.com/brentvatne/apollo-sqlite-experiment/blob/...) built on graphql-anywhere to pull the data out of the DB.
brentvatne commented on Introducing Sketch: A Playground for React Native from Expo (YC S16)   blog.expo.io/sketch-a-pla... · Posted by u/ccheever
brentvatne · 9 years ago
Here's a fun example of a pretty common UI pattern -- the header transitions into another as you scroll, and the hero image scales / fades depending on scroll position too: https://sketch.expo.io/SyVvB3Hjx -- it uses React Native's native animated driver with ScrollViews :)

u/brentvatne

KarmaCake day309March 14, 2011View Original