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
670fb5b9
Commit
670fb5b9
authored
Jan 04, 2018
by
AFOC-1709091830\echou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify readme
parent
e5c6c022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
README.md
README.md
+9
-3
No files found.
README.md
View file @
670fb5b9
...
@@ -32,12 +32,18 @@ or
...
@@ -32,12 +32,18 @@ or
import
{
PullToRefresh
}
from
"
react-js-pull-to-refresh
"
;
import
{
PullToRefresh
}
from
"
react-js-pull-to-refresh
"
;
```
```
#### import default content (optional)
```
js
import
{
PullDownContent
,
ReleaseContent
,
RefreshContent
}
from
"
react-js-pull-to-refresh
"
;
```
#### Sample
#### Sample
```
js
```
js
<
PullToRefresh
<
PullToRefresh
pullDownContent
=
{
<
div
style
=
{{
backgroundColor
:
"
grey
"
,
height
:
"
200px
"
,
textAlign
:
"
center
"
}}
>
Pull
down
to
refresh
<
/div
>
}
pullDownContent
=
{
<
PullDownContent
/
>
}
releaseContent
=
{
<
div
style
=
{{
backgroundColor
:
"
green
"
,
height
:
"
200px
"
,
textAlign
:
"
center
"
}}
>
Release
to
refresh
<
/div
>
}
releaseContent
=
{
<
ReleaseContent
/
>
}
refreshContent
=
{
<
div
style
=
{{
backgroundColor
:
"
yellow
"
,
height
:
"
200px
"
,
textAlign
:
"
center
"
}}
>
Refreshing
<
/div
>
}
refreshContent
=
{
<
RefreshContent
/
>
}
pullDownThreshold
=
{
200
}
pullDownThreshold
=
{
200
}
onRefresh
=
{
this
.
onRefresh
}
onRefresh
=
{
this
.
onRefresh
}
>
>
...
...
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