Use https://github.com/24i/react-native-tvos.git#<TAG>
as a dependency. So for example:
"react-native-tvos": "https://github.com/24i/react-native-tvos.git#24i-v0.63.4-3"
It's very important you define it exactly like that. At least yarn have some bugs which are causing problems with using git references as npm dependency. See yarnpkg/yarn#4722.
-
Read this documentation.
-
Think, don't do things in hurry.
-
Modify code on this repo as a last option. Talk to at least one collegue before doing anything on this repo.
-
If you absolutely need to make a change, touch as little code as possible.
-
Make a feature branch using 24i-fork-branch as a base.
-
Do the required change with as little code as possible. Describe all changes you do below in a section "List of changes".
-
Make a PR to merge it into 24i-fork-branch. Take a special care when making a PR to setup a merge correctly. By default it attempts to merge with upstream repo (react-native-tvos/react-native-tvos). Ask some collagues to review the PR.
-
After PR has been merged look for the latest commit on 24i-fork-branch. Copy the hash of it and use it as a dependency in prd-nxg-smartapps repo where react-native-tvos package is being used. Dependency is expressed using
github:24i/react-native-tvos#<HASH HERE>
. -
(Optional) Consider making a PR on upstream repo as well.
It's important to list all changes we have done in order to keep track of them and allow easier migration when updating the library.
- Created the file
- Negated vertical tiltAngle value in order to fix https://jira.24i.com/browse/PRDSAPPSTV-398 (link to PR)
- Adding long press events for arrow keys in order to support https://jira.24i.com/browse/PRDPLAYER-1152 (link to PR)
- Adding long press events for arrow keys in order to support https://jira.24i.com/browse/PRDPLAYER-1152 (link to PR)
- Adding long press events for arrow keys in order to support https://jira.24i.com/browse/PRDPLAYER-1152 (link to PR)
- Changed how snapping to offset is being calculated. Ticket related https://aferian.atlassian.net/browse/PRDSAPPSTV-675. (link to PR)
- Changed how touch events are bubbling. It affects swipe. This is needed when used in conjuction with "react-native-screens": "3.13.1" Remove if updating it. Ticket related https://aferian.atlassian.net/browse/PRDSAPPSTV-751 Ticket related https://aferian.atlassian.net/browse/PRDSAPPSRN-12649 (link to PR)
- Use of bitwise '|' with boolean operands (link to PR)