ecency-mobile/patches/react-native-modal-dropdown+1.0.2.patch

163 lines
6.2 KiB
Diff

diff --git a/node_modules/react-native-modal-dropdown/components/ModalDropdown.js b/node_modules/react-native-modal-dropdown/components/ModalDropdown.js
index c7e4b4f..275b785 100644
--- a/node_modules/react-native-modal-dropdown/components/ModalDropdown.js
+++ b/node_modules/react-native-modal-dropdown/components/ModalDropdown.js
@@ -434,7 +434,8 @@ export default class ModalDropdown extends Component {
data={options}
ref={component => (this.flatList = component)}
scrollEnabled={scrollEnabled}
- initialScrollIndex={saveScrollPosition ? selectedIndex : -1}
+ // GitHub: https://github.com/siemiatj/react-native-modal-dropdown/issues/49
+ // initialScrollIndex={saveScrollPosition ? selectedIndex : -1}
style={styles.list}
keyExtractor={(item, i) => (`key-${i}`)}
renderItem={this._renderItem}
diff --git a/node_modules/react-native-modal-dropdown/example/android/build.gradle b/node_modules/react-native-modal-dropdown/example/android/build.gradle
index eed9972..61bdb60 100644
--- a/node_modules/react-native-modal-dropdown/example/android/build.gradle
+++ b/node_modules/react-native-modal-dropdown/example/android/build.gradle
@@ -2,7 +2,7 @@
buildscript {
repositories {
- jcenter()
+ mavenCentral() //patched
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
@@ -15,7 +15,7 @@ buildscript {
allprojects {
repositories {
mavenLocal()
- jcenter()
+ mavenCentral() //patched
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
diff --git a/node_modules/react-native-modal-dropdown/example/package.json b/node_modules/react-native-modal-dropdown/example/package.json
index f6a90bf..c193d34 100644
--- a/node_modules/react-native-modal-dropdown/example/package.json
+++ b/node_modules/react-native-modal-dropdown/example/package.json
@@ -13,5 +13,57 @@
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
- "private": true
+ "private": true,
+ "react-native": {
+ "zlib": "browserify-zlib",
+ "console": "console-browserify",
+ "constants": "constants-browserify",
+ "crypto": "react-native-crypto",
+ "dns": "dns.js",
+ "net": "react-native-tcp",
+ "domain": "domain-browser",
+ "http": "@tradle/react-native-http",
+ "https": "https-browserify",
+ "os": "react-native-os",
+ "path": "path-browserify",
+ "querystring": "querystring-es3",
+ "fs": "react-native-level-fs",
+ "_stream_transform": "readable-stream/transform",
+ "_stream_readable": "readable-stream/readable",
+ "_stream_writable": "readable-stream/writable",
+ "_stream_duplex": "readable-stream/duplex",
+ "_stream_passthrough": "readable-stream/passthrough",
+ "dgram": "react-native-udp",
+ "stream": "stream-browserify",
+ "timers": "timers-browserify",
+ "tty": "tty-browserify",
+ "vm": "vm-browserify",
+ "tls": false
+ },
+ "browser": {
+ "zlib": "browserify-zlib",
+ "console": "console-browserify",
+ "constants": "constants-browserify",
+ "crypto": "react-native-crypto",
+ "dns": "dns.js",
+ "net": "react-native-tcp",
+ "domain": "domain-browser",
+ "http": "@tradle/react-native-http",
+ "https": "https-browserify",
+ "os": "react-native-os",
+ "path": "path-browserify",
+ "querystring": "querystring-es3",
+ "fs": "react-native-level-fs",
+ "_stream_transform": "readable-stream/transform",
+ "_stream_readable": "readable-stream/readable",
+ "_stream_writable": "readable-stream/writable",
+ "_stream_duplex": "readable-stream/duplex",
+ "_stream_passthrough": "readable-stream/passthrough",
+ "dgram": "react-native-udp",
+ "stream": "stream-browserify",
+ "timers": "timers-browserify",
+ "tty": "tty-browserify",
+ "vm": "vm-browserify",
+ "tls": false
+ }
}
diff --git a/node_modules/react-native-modal-dropdown/expo-example/package.json b/node_modules/react-native-modal-dropdown/expo-example/package.json
index a2e74a6..ec044ab 100644
--- a/node_modules/react-native-modal-dropdown/expo-example/package.json
+++ b/node_modules/react-native-modal-dropdown/expo-example/package.json
@@ -17,5 +17,57 @@
"@babel/core": "^7.8.6",
"babel-preset-expo": "~8.1.0"
},
- "private": true
+ "private": true,
+ "react-native": {
+ "zlib": "browserify-zlib",
+ "console": "console-browserify",
+ "constants": "constants-browserify",
+ "crypto": "react-native-crypto",
+ "dns": "dns.js",
+ "net": "react-native-tcp",
+ "domain": "domain-browser",
+ "http": "@tradle/react-native-http",
+ "https": "https-browserify",
+ "os": "react-native-os",
+ "path": "path-browserify",
+ "querystring": "querystring-es3",
+ "fs": "react-native-level-fs",
+ "_stream_transform": "readable-stream/transform",
+ "_stream_readable": "readable-stream/readable",
+ "_stream_writable": "readable-stream/writable",
+ "_stream_duplex": "readable-stream/duplex",
+ "_stream_passthrough": "readable-stream/passthrough",
+ "dgram": "react-native-udp",
+ "stream": "stream-browserify",
+ "timers": "timers-browserify",
+ "tty": "tty-browserify",
+ "vm": "vm-browserify",
+ "tls": false
+ },
+ "browser": {
+ "zlib": "browserify-zlib",
+ "console": "console-browserify",
+ "constants": "constants-browserify",
+ "crypto": "react-native-crypto",
+ "dns": "dns.js",
+ "net": "react-native-tcp",
+ "domain": "domain-browser",
+ "http": "@tradle/react-native-http",
+ "https": "https-browserify",
+ "os": "react-native-os",
+ "path": "path-browserify",
+ "querystring": "querystring-es3",
+ "fs": "react-native-level-fs",
+ "_stream_transform": "readable-stream/transform",
+ "_stream_readable": "readable-stream/readable",
+ "_stream_writable": "readable-stream/writable",
+ "_stream_duplex": "readable-stream/duplex",
+ "_stream_passthrough": "readable-stream/passthrough",
+ "dgram": "react-native-udp",
+ "stream": "stream-browserify",
+ "timers": "timers-browserify",
+ "tty": "tty-browserify",
+ "vm": "vm-browserify",
+ "tls": false
+ }
}