├── .gitignore ├── .npmignore ├── README.md ├── assets └── RNDragNDrop.gif ├── example ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── LICENSE ├── __tests__ │ ├── index.android.js │ └── index.ios.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── basic │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle ├── app.json ├── index.android.js ├── index.ios.js ├── index.js ├── ios │ ├── RNDragAndDropList-tvOS │ │ └── Info.plist │ ├── RNDragAndDropList-tvOSTests │ │ └── Info.plist │ ├── RNDragAndDropList.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── RNDragAndDropList-tvOS.xcscheme │ │ │ └── RNDragAndDropList.xcscheme │ ├── RNDragAndDropList │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── RNDragAndDropListTests │ │ ├── Info.plist │ │ └── RNDragAndDropListTests.m ├── package.json └── yarn.lock ├── index.js ├── package.json └── src ├── Row.js ├── SortableList.js └── utils ├── index.js ├── shallowEqual.js └── swapArrayElements.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | demo.gif 2 | examples 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/README.md -------------------------------------------------------------------------------- /assets/RNDragNDrop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/assets/RNDragNDrop.gif -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/.buckconfig -------------------------------------------------------------------------------- /example/.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/.flowconfig -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/LICENSE -------------------------------------------------------------------------------- /example/__tests__/index.android.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/__tests__/index.android.js -------------------------------------------------------------------------------- /example/__tests__/index.ios.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/__tests__/index.ios.js -------------------------------------------------------------------------------- /example/android/app/BUCK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/BUCK -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/build.gradle -------------------------------------------------------------------------------- /example/android/app/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/app/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /example/android/app/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/gradlew -------------------------------------------------------------------------------- /example/android/app/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/gradlew.bat -------------------------------------------------------------------------------- /example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/proguard-rules.pro -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/basic/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/java/com/basic/MainActivity.java -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/basic/MainApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/java/com/basic/MainApplication.java -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/build.gradle -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/gradle.properties -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/gradlew -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/gradlew.bat -------------------------------------------------------------------------------- /example/android/keystores/BUCK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/keystores/BUCK -------------------------------------------------------------------------------- /example/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/android/keystores/debug.keystore.properties -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNDragAndDropList' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/app.json -------------------------------------------------------------------------------- /example/index.android.js: -------------------------------------------------------------------------------- 1 | import './index.js'; 2 | -------------------------------------------------------------------------------- /example/index.ios.js: -------------------------------------------------------------------------------- 1 | import './index.js'; 2 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/index.js -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList-tvOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList-tvOS/Info.plist -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList-tvOSTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList-tvOSTests/Info.plist -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList.xcodeproj/xcshareddata/xcschemes/RNDragAndDropList-tvOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList.xcodeproj/xcshareddata/xcschemes/RNDragAndDropList-tvOS.xcscheme -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList.xcodeproj/xcshareddata/xcschemes/RNDragAndDropList.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList.xcodeproj/xcshareddata/xcschemes/RNDragAndDropList.xcscheme -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/AppDelegate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/AppDelegate.h -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/AppDelegate.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/AppDelegate.m -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/Base.lproj/LaunchScreen.xib -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/Images.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/Info.plist -------------------------------------------------------------------------------- /example/ios/RNDragAndDropList/main.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropList/main.m -------------------------------------------------------------------------------- /example/ios/RNDragAndDropListTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropListTests/Info.plist -------------------------------------------------------------------------------- /example/ios/RNDragAndDropListTests/RNDragAndDropListTests.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/ios/RNDragAndDropListTests/RNDragAndDropListTests.m -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/package.json -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/package.json -------------------------------------------------------------------------------- /src/Row.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/src/Row.js -------------------------------------------------------------------------------- /src/SortableList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/src/SortableList.js -------------------------------------------------------------------------------- /src/utils/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/src/utils/index.js -------------------------------------------------------------------------------- /src/utils/shallowEqual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/src/utils/shallowEqual.js -------------------------------------------------------------------------------- /src/utils/swapArrayElements.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SystangoTechnologies/rn-drag-n-drop/HEAD/src/utils/swapArrayElements.js --------------------------------------------------------------------------------