Needing react-native features from master branch

T. Eric Hong

I'm developing react-native app based on the latest 0.15.0 release via the NPM install/update method. Looking through the react-native MapView documentation it appears that it should support "image" prop in the "annotations" prop and "overlays" prop in the MapView. However, those props didn't work in my RN release.

react-native GitHubのさまざまなブランチを調べたところ、MapViewにこれらの小道具があるのはマスターブランチだけであることがわかりました(これを参照)。私はNPMを介してRNリリースについていくので。RNマスターブランチに対してどのように開発できるかは私にはわかりません。

何か案が?

私が考えることができる1つの方法は、npmのnode_modulesでmasterブランチのgit pullを実行し、react-nativeモジュールを上書きすることです。しかし、それは思い切ったようで、削除が必要な不要な部分もたくさん引き込みます。

もう1つのアイデアは、マスターブランチのMapViewコンポーネントと対応するiOSネイティブファイルRCTMapを手動でコピーすることですが、それはエレガントで面倒なようです。

ここでよりエレガントなソリューションを探しています。

ソフィー・アルパート

次のように、package.jsonでgit依存関係を指定できるはずです。

"dependencies": {
  "react-native": "facebook/react-native",
},

npmは、インストール時にリポジトリのクローンを自動的に作成します。特定のコミットに固定する場合(強くお勧めします)、実行しますfacebook/react-native#f025049b

(この戦略はreact、npmの前にビルドステップを必要とするそれ自体のような一部のパッケージでは機能しませんが、react-nativeこのように正常に機能するはずです。)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Merge a branch from another branch in master

分類Dev

Delete branch after checkout from the master

分類Dev

How to transfer a commit from master to another branch?

分類Dev

Change base branch to remote master from forked master

分類Dev

move branch from master commit to previous master commit

分類Dev

How to run a GitHub Action from a branch other than master?

分類Dev

Git Move Not-Pushed Commit from temp to master branch

分類Dev

Git Move Not-Pushed Commit from temp to master branch

分類Dev

git pull origin master marks changes from master as modified in my feature branch

分類Dev

github. How would one merge all changes from the master branch into another branch?

分類Dev

git abandon master branch

分類Dev

git master branch is crazy

分類Dev

Git merge master into feature branch

分類Dev

Master and branch showing the same changes

分類Dev

how to reset develop branch to master

分類Dev

Setting TextInput value from AsyncStorage in React Native

分類Dev

React native how to return a string from a function

分類Dev

React Native - Get value from component - onPress

分類Dev

React Native: change State from different component

分類Dev

React native passing response from request

分類Dev

React Native - Sending events from Native to JavaScript in AppDelegate (iOS)

分類Dev

How to rebase a branch after its base branch was rebased on master

分類Dev

got 'fatal: branch 'master' does not exist' in git

分類Dev

Git push master fatal: You are not currently on a branch

分類Dev

GitHub branch always one commit behind master

分類Dev

Git: What happens to a branch after a master reset

分類Dev

files changes when merge branch to master

分類Dev

How to point branch to master after rebase complete

分類Dev

Gerrit email notification for push to master branch

Related 関連記事

  1. 1

    Merge a branch from another branch in master

  2. 2

    Delete branch after checkout from the master

  3. 3

    How to transfer a commit from master to another branch?

  4. 4

    Change base branch to remote master from forked master

  5. 5

    move branch from master commit to previous master commit

  6. 6

    How to run a GitHub Action from a branch other than master?

  7. 7

    Git Move Not-Pushed Commit from temp to master branch

  8. 8

    Git Move Not-Pushed Commit from temp to master branch

  9. 9

    git pull origin master marks changes from master as modified in my feature branch

  10. 10

    github. How would one merge all changes from the master branch into another branch?

  11. 11

    git abandon master branch

  12. 12

    git master branch is crazy

  13. 13

    Git merge master into feature branch

  14. 14

    Master and branch showing the same changes

  15. 15

    how to reset develop branch to master

  16. 16

    Setting TextInput value from AsyncStorage in React Native

  17. 17

    React native how to return a string from a function

  18. 18

    React Native - Get value from component - onPress

  19. 19

    React Native: change State from different component

  20. 20

    React native passing response from request

  21. 21

    React Native - Sending events from Native to JavaScript in AppDelegate (iOS)

  22. 22

    How to rebase a branch after its base branch was rebased on master

  23. 23

    got 'fatal: branch 'master' does not exist' in git

  24. 24

    Git push master fatal: You are not currently on a branch

  25. 25

    GitHub branch always one commit behind master

  26. 26

    Git: What happens to a branch after a master reset

  27. 27

    files changes when merge branch to master

  28. 28

    How to point branch to master after rebase complete

  29. 29

    Gerrit email notification for push to master branch

ホットタグ

アーカイブ