Better HN
topnewbestaskshowjobs
Log inSign up

jsh7

5 karma · joined May 16, 2013 (13y ago) · 13 submissions

Submissions

comment 8y ago · link · parent

You can also ‘return’ the outer function from within a ‘for...of’ which is pretty useful imo.

2.

Show HN: NPM Audit – Audit your NPM dependencies for malicious packages(github.com ↗)

1 points · by jsh7 · 9y ago · discuss

comment 9y ago · link · parent

Thanks!! Using this as boilerplate for multiple specialized todo/reminder apps was exactly my plan :)

For animations I just used Animated (https://facebook.github.io/react-native/docs/animated.html) and LayoutAnimation (https://facebook.github.io/react-native/docs/layoutanimation...) -- the latter makes things so easy I'll probably end up overusing it.

One resource I looked at was https://github.com/Thinkmill/react-conf-app -- but your f8app looks even better than that! I like going through the package.json of other RN apps to learn about new tools. Some of my favorite packages so far are react-native-code-push, react-native-google-analytics-bridge, react-native-image-picker, react-native-smart-splash-screen, react-native-vector-icons, and redux-persist.

comment 9y ago · link · parent

Congrats on your launch! Your site is well-designed. And definitely, I'm thinking that building in some social features should be my next step. One idea I have is adding a timeline for each of your plants so you can see how they've grown over time, and then letting you share those timelines with your friends.

Regarding the photos -- for this MVP, I made it a point to not build any server whatsoever. So for now, all pictures are stored on the device's file system. For this I use https://github.com/marcshilling/react-native-image-picker to take/choose the photos and then https://github.com/johanneslumpe/react-native-fs to manage them in the application's storage.

comment 9y ago · link · parent

Happy to answer any questions. I really enjoyed working with React Native and I can't wait to start my next RN app. I was also able to open source a couple libraries I wrote while building this app: https://github.com/jshanson7/react-native-swipeable and https://github.com/jshanson7/react-native-interactions

6.

Show HN: SmartyPlants – my first iOS app, written entirely in React Native(smartyplantsapp.com ↗)

2 points · by jsh7 · 9y ago · 6 comments

comment 10y ago · link · parent

Try this: `class extends Component { foo = () => { console.log('this was bound at construction time'); }; render() { return <SubComponent foo={this.foo} />; } }` This only works if you have stage-1 class properties enabled though.

8.

Easily create and manipulate CSSStyleDeclarations with JavaScript(github.com ↗)

1 points · by jsh7 · 11y ago · discuss

comment 11y ago · link · parent

Interesting. One suggestion -- if you're going to use dynamic URLs with query parameters, you should re-evaluate them when the browser back/forward buttons are pressed.

comment 12y ago · link · parent

Yahoo seems to be enjoying this news: https://twitter.com/Yahoo/status/426795724542455808

comment 12y ago · link · parent

For a Wall Street trader on the other hand, this tradeoff seems to not exist.

12.

Squarespace under large DDOS right now(twitter.com ↗)

2 points · by jsh7 · 12y ago · discuss