Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.idea
.idea
lib/
4 changes: 2 additions & 2 deletions bin/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
const fs = require('fs');

fs.copyFileSync(
'components/SwipeListView.js',
'src/components/SwipeListView.js',
'SwipeListExample/SwipeListView.js'
);
fs.copyFileSync('components/SwipeRow.js', 'SwipeListExample/SwipeRow.js');
fs.copyFileSync('src/components/SwipeRow.js', 'SwipeListExample/SwipeRow.js');

fs.readdir('SwipeListExample/examples', (err, files) => {
if (err) {
Expand Down
4 changes: 0 additions & 4 deletions lib/index.js

This file was deleted.

22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
{
"name": "react-native-swipe-list-view",
"version": "3.2.4",
"main": "lib/index.js",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"react-native": "src/index.js",
"author": "Jesse Sessler <jesse.sessler@gmail.com>",
"description": "A ListView with rows that swipe open and closed.",
"scripts": {
"start": "node_modules/react-native/packager/packager.sh",
"dev": "node bin/dev.js && cd SwipeListExample && npm run start",
"prettier": "prettier --write --loglevel=warn \"**/*.js\"",
"prettier": "prettier --write --loglevel warn --ignore-path .gitignore \"**/*.js\"",
"lint": "eslint **/*.js",
"fix": "yarn run prettier && yarn run lint"
"fix": "yarn run prettier && yarn run lint",
"prepare": "bob build"
},
"repository": {
"type": "git",
"url": "https://github.com/jemise111/react-native-swipe-list-view"
},
"types": "./types/index.d.ts",
"license": "MIT",
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module"
]
},
"eslintIgnore": [
"node_modules/",
"dist/"
],
"keywords": [
"react",
"react-native",
Expand All @@ -33,6 +48,7 @@
"react-native": ">=0.23.1"
},
"devDependencies": {
"@react-native-community/bob": "^0.16.2",
"@types/react": "^16.8.20",
"@types/react-native": "^0.57.63",
"babel-eslint": "^10.0.3",
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import SwipeListView from './components/SwipeListView';
import SwipeRow from './components/SwipeRow';

export { SwipeListView, SwipeRow };
2,150 changes: 2,144 additions & 6 deletions yarn.lock

Large diffs are not rendered by default.