-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve documentation of how to install this or other fork of React Native #49
Comments
Hi! |
I read today in #11 (comment) that this would only work with Yarn, not with npm (Yarn seem to work much better with React Native projects anyway).
That version pattern does not seem to work, perhaps because there was always 0.60.4-* tags. I tried a couple more:
I do hope we can improve the situation with the 0.x version pattern at some point.
I would unfortunately doubt that idea, since a React Native project normally expects some form of a single react-native dependency that it can build from. I think the discussion in #11 explains why we are stuck with supporting tvOS in a fork like this one. While I do still think it would be ideal to build for tvOS as on out-of-tree platform, in a similar fashion to react-native-windows and react-native-turbolinks, and reusing as much iOS native implementation as possible from react-native, I think this would be a very if not extremely challenging task not likely work the trouble. |
@brodybits is correct that you should have only a single react-native dependency in your project. This repo supports tvOS AND all the other platforms already supported by RN core. All releases of this repo have versions of the form 0.xx.x-z, where the x digits come from the base RN core version, and we add a tvOS version number at the end after the dash. This helps make it clear which RN core version forms the basis for a release. I will add some text in |
#63 is merged, and appears in https://github.com/react-native-community/react-native-tvos/releases/tag/v0.61.5-1 and in the README for the public npm package. Closing. |
There is still something not clear to me: how to use previous react-native-tvos 0.x version such as 0.60.x-x or 0.61.x-x by inexact version number. Of course I could just look it up on npmjs.com to find 0.60.4-6 or 0.61.5-1 for example, but I would rather be able to specify a more general pattern. This is analogous to using [email protected] or [email protected]. While I do think it is generally best practice to use the latest version, I think this should not be forced or coerced too strongly. I generally like to test my create-react-native-module tool on React Native versions back to 0.60, for example. I would be happy to raise this question in a new issue, if needed. A side point, possibly off-topic, is that React Native 0.62 seems to take much longer to build and run on iOS. I should probably raise this in react-native-community. Maybe I just have to upgrade, unfortunately cannot afford it right now. I would like to give thanks again for this really nice fork with the TV support. |
@brodybits:
I'll have a look at how RN core does this -- I think this might be something done in
Did you take out the Flipper pods?
I appreciate the kind words :) |
I suspect that it just works with npm semver because RN core generally publishes with no dashed suffix. The following commands seem to approximate what I was trying to do:
I am now starting to wonder how much effort it is really work testing with the old versions. I just took a look at the active branches, just looking at it was a little painful.
Taking out the Flipper pods sure speeds up my build. Here is what I did in case it may help any others updated:
This issue helped me figure it out: facebook/flipper#976 I think it would be nice if this could be documented and supported a little more formally by React Native itself. |
I think I finally understand it today, while working on something else, how installing from this fork works.
@dlowder-salesforce already described it in brodycj/create-react-native-module#95 (comment) for a custom native module but I think something similar is needed for an existing or new React Native app for tvOS. I think it should be this in case of Yarn (highly recommended):
or for a specific version or tag name (I am showing for inexact version number, which should work in theory at least):
At this point the README.md shows how to do this by editing package.json, which I would generally not recommend when using frameworks like this one.
related to:
I would love to contribute sometime, unfortunately cannot promise due to some other priorities right now.
The text was updated successfully, but these errors were encountered: