2017-08-03 84 views
6

的本土支柱RCTScrollView.overScrollMode我越來越波紋管的問題,是任何一個有關於這個滾動視圖沒有proptype原生字符串類型

scrollview has no proptype for native prop RCTScrollView.overScrollMode of native type string if you havent changed this prop yourself this usually means that your versions of the native code and javascript code are out of sync

+0

您是否找到了解決方案?我面臨同樣的問題。 –

+0

同一問題在這裏 – arcom

+0

我遇到了同樣的問題...任何解決方案? –

回答

2

這是一個棘手的一個想法。取決於你的包管理器。

您必須升級react-native。

+0

Victor,需要哪種版本的「react-native」?我有'react-native' 0.48.3&'react' 16.0.0-rc.2,我無法在iOS中解決這個問題。 :( –

+0

這就是我在我的package.json文件中使用'「react」:「16.0.0-alpha.12」','react-native「:」^ 0.47.2「'似乎有在我運行命令之後工作 –

+0

在我的情況下,這是錯誤:https://github.com/facebook/react-native/issues/15875 我剛降級到'react-native' 0.47.2並且所有的工作都很好 –

4

它,也許你的依賴包的版本是不匹配的,我在我的依賴關係升級到react-native upgrade如果使用反應的腳本

yarn upgrade react-native如果採用了最新的製作,反應,應用工具,截至8月,最新的,現在它在這些版本中工作。

"expo": "^21.0.2", 
"native-base": "^2.3.2", 
"react": "16.0.0-alpha.12", 
"react-native": "^0.48.4", 
"react-navigation": "^1.0.0-beta.12" 
+0

你不知道你是多麼的高興我!這一整天(和前一天晚上)我都在苦苦掙扎。謝謝!謝謝! –

1

找到了可能的solution

1. Bump expo version in package.json to 21.0.2 
2. Bump react-native version in package.json to 0.48.4  
3. Remove node_modules 
4. npm install or yarn install 
5. Change sdk version in app.json to 21.0.0 

... ScrollView再次工作! :)