Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
react-pull-to-refresh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jason.yap
react-pull-to-refresh
Commits
2149d442
Commit
2149d442
authored
Dec 19, 2017
by
李勇諭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix type
parent
7abf2bfe
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
.npmignore
.npmignore
+0
-3
package.json
package.json
+3
-3
src/PullToRefresh.tsx
src/PullToRefresh.tsx
+2
-2
src/dev.tsx
src/dev.tsx
+0
-0
src/index.ts
src/index.ts
+2
-0
webpack.config.js
webpack.config.js
+1
-1
No files found.
.npmignore
View file @
2149d442
...
...
@@ -2,9 +2,6 @@
/node_modules
/public
/src
/dist/index.d.ts
/dist/index.js
/dist/index.js.map
tsconfig.json
tslint.json
webpack.config.js
...
...
package.json
View file @
2149d442
{
"name"
:
"react-js-pull-to-refresh"
,
"version"
:
"0.1.
0
"
,
"version"
:
"0.1.
2
"
,
"description"
:
"React pull to refresh"
,
"main"
:
"dist/
PullToRefresh
.js"
,
"types"
:
".dist/
PullToRefresh
.d.ts"
,
"main"
:
"dist/
index
.js"
,
"types"
:
".dist/
index
.d.ts"
,
"scripts"
:
{
"dev"
:
"webpack-dev-server"
,
"lint"
:
"tslint -c tslint.json src/*"
,
...
...
src/PullToRefresh.tsx
View file @
2149d442
...
...
@@ -63,7 +63,7 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
}
@
autobind
private
onTouchStart
(
e
:
TouchEvent
)
{
private
onTouchStart
(
e
)
{
this
.
dragging
=
true
;
this
.
startY
=
e
[
"
pageY
"
]
||
e
.
touches
[
0
].
pageY
;
this
.
currentY
=
this
.
startY
;
...
...
@@ -73,7 +73,7 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
}
@
autobind
private
onTouchMove
(
e
:
TouchEvent
)
{
private
onTouchMove
(
e
)
{
if
(
!
this
.
dragging
)
{
return
;
}
...
...
src/
index
.tsx
→
src/
dev
.tsx
View file @
2149d442
File moved
src/index.ts
0 → 100644
View file @
2149d442
import
{
PullToRefresh
}
from
"
./PullToRefresh
"
;
export
{
PullToRefresh
};
webpack.config.js
View file @
2149d442
...
...
@@ -13,7 +13,7 @@ module.exports = {
"
react-hot-loader/patch
"
,
// activate HMR for React
"
webpack-dev-server/client?http://localhost:8080/
"
,
"
webpack/hot/only-dev-server
"
,
"
./src/
index
.tsx
"
"
./src/
dev
.tsx
"
],
output
:
{
filename
:
"
bundle.js
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment