top | item 14718311

(no title)

calvin_c | 8 years ago

Exactly. It’s an abstraction, you will always be a few libraries and components away from implementing what you actually want, but that’s a lot to build on just to use a system provided tool. For instance, I’m working on upgrading my company’s app to use iOS 11’s new password auto fill APIs. All it needs is for you to set the UITextField’s contentType properly to one of a dozen enumerated values, in this case Username and Password. React Native doesn’t expose that propertie on the TextField component however, so I have to either build my own extension on top of the TextField component or form the React Native project and submit a PR to get this feature working, a feature that’s explicitly supposed to be painless to implement. There are so many cases like this around React Native, the community mindset is usually just to find another dependency to integrate.

discuss

order

LeoNatan25|8 years ago

“the community mindset is usually just to find another dependency to integrate.”

I fear it’s JS development mindset in general. I mean, you start a new project in RN, you get 1200 NPM dependencies. You start work, and you get thousands of dependencies. All that piles up to a huge amount of code that has to be parsed on start up (no ahead of time compilation or JIT).

cel1ne|8 years ago

That is one of my pains with react-native and the JS-community. Their tooling sucks, because they use javascript for everything.

Having a NullPointerException/"undefined" in my code means I have to go hunt the bug for a couple of minutes. Having it in my buildtool means I my productivity drops to zero for an hour.

RN also keeps using deprecated and old version of android-buildtools.

Fun fact: "NullPointerException" gives 2.47 million results on google.

"cannot read property of undefined" gives 3.71 million results.

(Background: I'm a Java, Kotlin and JavaScript developer, shipped an app using react-native for the Views only, but Kotlin for the business-logic. I also picked some fights with the RN-maintainers on github issues.)

cel1ne|8 years ago

> the community mindset is usually just to find another dependency to integrate.

I agree but tachyons.css is different.

OP asked for "margin and layout" guides.

Tachyons gives you exactly that. A dimensional and typographic scale without forcing you into their framework, because it uses atomic classes.

http://tachyons.io/#style