Live data from Hacker News

Hippy: React Native Alternative by Tencent

github.com

1–10 of 80 posts

Re: Hippy: React Native Alternative by Tencent

#2
Looks like they haven't put up much documentation yet - hard to say what this is really.

How do you work with different platforms? How does the performance compare to React Native? Can we see examples? What APIs exist to access native functionalities? How complete is the Flex implementation?

Re: Hippy: React Native Alternative by Tencent

#5
post #3

Hippy is now applied in 18 Tencent apps concerning tens of billions of ordinary users. Having used a lot of these apps I wonder if this is indeed what they use to deliver near native experience with web technologies..

Where did they find the extra 2.5 billion people?

Re: Hippy: React Native Alternative by Tencent

#6
post #3

Hippy is now applied in 18 Tencent apps concerning tens of billions of ordinary users. Having used a lot of these apps I wonder if this is indeed what they use to deliver near native experience with web technologies..

Where did they find the extra 2.5 billion people?

They are probably talking about unqiue users in each app. 10b/18 ≈ 555m per app which isn't unreasonable for Tencent.

Re: Hippy: React Native Alternative by Tencent

#7
post #2

Looks like they haven't put up much documentation yet - hard to say what this is really. How do you work with different platforms? How does the performance compare to React Native? Can we see examples? What APIs exist to access native functionalities? How complete is the Flex implementation?

I dug around a little and installed their demo app in the iOS simulator: https://www.dropbox.com/s/hl3nk8jrcjleurj/hippy.mov?dl=0. Visually, the only interesting part of the demo app is the RefreshWrapper example

Code-wise, the most interesting things I've seen:

- They expose wrappers for native recycling list views[0]. React Native does this in JavaScript through VirtualizedList, however some have experienced performance issues with it[1]

- They wrote their own flexbox layout library[2] (likely based on Yoga)

- It works with both Vue[3] and React

- Hippy supports web as a build target out of the box[4] (react-native-web is a 3rd party library)

- Touch events work on the `` component directly, instead of needing to wrap ``'s in the `` components[5]

- It uses a closed-source fork of libv8 on Android called X5[6].

The API & coding style is quite similar to React Native, but the implementation seems different. I'm guessing this started as an internal fork of React Native and turned into a large refactor, but that's just a guess

[0]: https://github.com/Tencent/Hippy/blob/master/ios/sdk/compone...

[1]: https://github.com/facebook/react-native/issues/13413

[2]: https://github.com/Tencent/Hippy/tree/master/layout

[3]: https://github.com/Tencent/Hippy/tree/master/packages/hippy-...

[4]: https://github.com/Tencent/Hippy/tree/master/packages/hippy-...

[5]: https://github.com/Tencent/Hippy/tree/master/packages/hippy-...

[6]: https://github.com/Tencent/Hippy/issues/9#issuecomment-56822...

Re: Hippy: React Native Alternative by Tencent

#8
post #6

Earlier quoted context omitted.

Where did they find the extra 2.5 billion people?

They are probably talking about unqiue users in each app. 10b/18 ≈ 555m per app which isn't unreasonable for Tencent.

According to their chinese doc, the number is actually "multiple hundred millions", so it's more likely just a translation issue.

Re: Hippy: React Native Alternative by Tencent

#10
I opened a random file(HippyBridge.h[0]) and it looks very similar to React Native's RCTBridge.h[1] which leads me to believe Hippy is either a fork of React Native or heavily "inspired" by it. A lot of the comments and symbols match React Native's 1-to-1.

EDIT: I've read through more of the source and compared it to React Native. Like Jarred mentioned[2] it probably started out as a fork of React Native.

0: https://github.com/Tencent/Hippy/blob/master/ios/sdk/base/Hi...

1: https://github.com/facebook/react-native/blob/master/React/B...

2: https://news.ycombinator.com/item?id=21877857

Post reply on HN