Relay: Share code between the React and React Native versions of the todo example

Created on 10 Mar 2016  路  7Comments  路  Source: facebook/relay

In making the React Native TodoMVC example app, a lot of code was copied without modifications. Fundamentally, the mutations, schema, and routes/queries are identical between the two projects.

It would be nice if the common parts were extracted into examples/todo_common/ in such a way that they could be used to build both apps.

good first bug help wanted

Most helpful comment

I would love to take this on.

All 7 comments

I would love to take this on.

I am going to work on this and get back to you if I have any questions. Should be fun first bug.

I would love to see how people approach this, I've done similar things in my projects but haven't found a "nice" way to do it yet...

I would like to see this too

+1

Yes. I was wondering what are the steps to make a relay app compatible with react-native

(Spring cleaning.) This issue will soon be a year old so I am closing this one due to inactivity. In any case, we no longer host the examples in this repo.

We would be happy to entertain PRs over in the relay-examples repo.

Thanks to everybody who participated in this discussion!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bondanherumurti picture bondanherumurti  路  3Comments

rayronvictor picture rayronvictor  路  3Comments

fedbalves picture fedbalves  路  3Comments

scotmatson picture scotmatson  路  3Comments

brad-decker picture brad-decker  路  3Comments