This converter is already defined in [RCTScrollViewManager.m](https://github.com/facebook/react-native/blob/master/React/Views/ScrollView/RCTScrollViewManager.m#L40). Redefining it in react-native-webview can cause undefined behaviour when used. Since ScrollView is unlikely to go away, we can take a dependency on it. All current tests should pass. When building a React Native app with `react-native-webview`, the following warning can be seen in the build logs: ``` Meta method 'UIScrollViewContentInsetAdjustmentBehavior:' in category from /~/Library/Developer/Xcode/DerivedData/App-geojljebaazfrrgvxfkjjpiwmdlg/Build/Products/Debug-iphonesimulator/React-Core/libReact-Core.a(RCTScrollViewManager.o) conflicts with same method from another category ``` The warning should go away after removing the offending function. Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com>
|
|
||
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
16 |
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
17 |
|
31 |
|
18 |
|
32 |
|
19 |
|