Giter Site home page Giter Site logo

What about React Native? about flipper HOT 17 CLOSED

facebook avatar facebook commented on May 7, 2024 140
What about React Native?

from flipper.

Comments (17)

danielbuechele avatar danielbuechele commented on May 7, 2024 62

I agree! React Native support is something we should look into. From my understanding the actual views created by React Native should already show up in the layout inspector. What we could offer, is adding React Dev Tools to Sonar as a separate plugin, showing the React components. Linking between the layout inspector with the actual views and a React plugin showing the component tree would be great.

The biggest task I see with this project, is to send the component hierarchy to the desktop. We will need to create a connection from JS to the desktop app.

from flipper.

sregg avatar sregg commented on May 7, 2024 28

https://github.com/infinitered/reactotron works very well with React Native.
It offers network inspection, better stack traces and redux actions/state logging and replay.
Checkout this video for more details: https://www.youtube.com/watch?v=UiPo9A9k7xc

from flipper.

estevaolucas avatar estevaolucas commented on May 7, 2024 18

@axe-fb is working to make it happen πŸ™Œ.

RN 0.61.0 will come with default setup on Android. And for iOS, per discussion here facebook/react-native#26053, Yoga dependence in Layout plugin clashes with RN one's (causing a The 'Pods-xxx' target has libraries with conflicting names: libyoga.a) and it should get fixed with those two commits: facebook/react-native@82a8080 facebook/react-native@a58dd96. 🀞

Thanks @axe-fb!

from flipper.

mweststrate avatar mweststrate commented on May 7, 2024 12

We are working on standardizing this, so ideally in 0.62 Flipper should work out of the box on React Native. In a later version it will also be possible to directly integrate with Flipper from the JavaScript side of things on RN.

from flipper.

mateosilguero avatar mateosilguero commented on May 7, 2024 8

I made this tutorial https://fbflipper.com/docs/getting-started.html#setup-your-react-native-app for React native integration. Currently there is no full support, but you could use some features

from flipper.

carloscuesta avatar carloscuesta commented on May 7, 2024 7

React Native support would be awesome!

from flipper.

trungtin avatar trungtin commented on May 7, 2024 4

If trying to add this pod 'Yoga','~>1.8.1', :modular_headers => true to the Podfile we stuck on #30. And when trying to install Yoga from podspec like this:

pod 'Yoga', :podspec => 'https://raw.githubusercontent.com/facebook/yoga/50e3714b21437d244e51874435953a2d011d1618/Yoga.podspec', :modular_headers => true

We stumble upon this issue The 'Pods-xxx' target has libraries with conflicting names: libyoga.a. as indeed in our Podfile we already have this:

pod "yoga", :path => "#{react_native_path}/ReactCommon/yoga"

Any idea :D?

from flipper.

alioguzhan avatar alioguzhan commented on May 7, 2024 3

Since integration is being done at native level, we should be able to use this tool for React-Native projects as well. Just update related files under ios and android projects. (default react native apps, not expo!)

from flipper.

TommyLeong avatar TommyLeong commented on May 7, 2024 1

Somehow the default Flipper setup on Android (RN0.61.0) does not connect my app with flipper. Guessing some dependencies weren't included on Android.

Anyway, my app has successfully integrated with Flipper following this guide. Thanks to guide from @mateosilguero !

from flipper.

maxence-machu avatar maxence-machu commented on May 7, 2024

+1, nice projet by the way

from flipper.

NSExceptional avatar NSExceptional commented on May 7, 2024

It isn't usually useful to inspect React Native views. There are no unique class names so everything looks the same when it's in a flat list. Not great for debugging.

That's my experience using FLEX on a RN app, anyway...

from flipper.

koox00 avatar koox00 commented on May 7, 2024

Even without the React devtools having a network inspector in a React native app is a great feat!

from flipper.

kashishgrover avatar kashishgrover commented on May 7, 2024

Looking forward to this! Thanks πŸ˜„

from flipper.

timsaval avatar timsaval commented on May 7, 2024

Our team would love that as well!

from flipper.

kashishgrover avatar kashishgrover commented on May 7, 2024

@sregg already using it! πŸ˜„

from flipper.

freysie avatar freysie commented on May 7, 2024

Trying to get Flipper to work with RN 0.59 and ExpoKit, I’m getting that libyoga.a error. Does anyone know of some kind of Podfile workaround or must I wait until Expo ships with RN 0.61?

from flipper.

MakhouT avatar MakhouT commented on May 7, 2024

Awesome!

from flipper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.