-
Notifications
You must be signed in to change notification settings - Fork 58
Pull request #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Pull request #58
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
99c1db5
feat: bump RN to 0.64
jp928 8bfebf9
feat: update to SmartRefreshLayout v1.1.2
jp928 adb6d53
feat: clean up javascript files
jp928 afb38f5
feat: fix the example
jp928 11e991c
feat: update to SmartRefreshLayout v1.1.2
jp928 5a28b51
bug: fix header moving event
jp928 b351bc9
chore: fix typo
jp928 89b4ba4
Merge remote-tracking branch 'origin' into pull-request
jp928 6c0b006
chore: fix typo
jp928 21641ae
Merge remote-tracking branch 'origin' into pull-request
jp928 a6c7e58
chore: bump version
jp928 fabc9ae
bug: revert event name
jp928 d022888
Merge remote-tracking branch 'origin' into pull-request
jp928 73955f2
feat: update example
jp928 5038925
chore: bump version
jp928 4e9dfb9
Merge remote-tracking branch 'origin' into pull-request
jp928 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| .idea | ||
| .DS_Store | ||
| .DS_Store | ||
|
|
||
| node_modules/ |
55 changes: 25 additions & 30 deletions
AnyHeader.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,26 @@ | ||
| import React, {Component} from 'react'; | ||
| import { | ||
| StyleSheet, | ||
| View, | ||
| Text, | ||
| requireNativeComponent, | ||
| findNodeHandle, | ||
| UIManager, | ||
| } from 'react-native'; | ||
| import PropTypes from 'prop-types'; | ||
| import {ViewPropTypes} from './Util' | ||
|
|
||
| const RCTAnyHeader = requireNativeComponent('RCTAnyHeader', RCTAnyHeader); | ||
|
|
||
| class AnyHeader extends Component { | ||
|
|
||
| render() { | ||
| return ( | ||
| <RCTAnyHeader | ||
| {...this.props} | ||
| /> | ||
|
|
||
| ) | ||
| } | ||
| } | ||
|
|
||
| AnyHeader.propTypes = { | ||
| primaryColor:PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
| import PropTypes from 'prop-types'; | ||
| import React, { Component } from 'react'; | ||
| import { | ||
| requireNativeComponent | ||
| } from 'react-native'; | ||
| import { ViewPropTypes } from './Util'; | ||
|
|
||
| const RCTAnyHeader = requireNativeComponent('RCTAnyHeader', RCTAnyHeader); | ||
|
|
||
| class AnyHeader extends Component { | ||
|
|
||
| render() { | ||
| return ( | ||
| <RCTAnyHeader | ||
| {...this.props} | ||
| /> | ||
|
|
||
| ) | ||
| } | ||
| } | ||
|
|
||
| AnyHeader.propTypes = { | ||
| primaryColor:PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
| export default AnyHeader; |
34 changes: 17 additions & 17 deletions
ClassicsHeader.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| import React, {Component} from 'react'; | ||
| import {requireNativeComponent} from 'react-native'; | ||
| import {ViewPropTypes} from './Util'; | ||
| import PropTypes from 'prop-types'; | ||
|
|
||
| const RCTClassicsHeader = requireNativeComponent('RCTClassicsHeader', RCTClassicsHeader); | ||
|
|
||
| export default class ClassicsHeader extends Component { | ||
| static propTypes = { | ||
| primaryColor: PropTypes.string, | ||
| accentColor: PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
|
|
||
| render() { | ||
| return (<RCTClassicsHeader {...this.props}/>) | ||
| } | ||
| import React, {Component} from 'react'; | ||
| import {requireNativeComponent} from 'react-native'; | ||
| import {ViewPropTypes} from './Util'; | ||
| import PropTypes from 'prop-types'; | ||
| const RCTClassicsHeader = requireNativeComponent('RCTClassicsHeader', RCTClassicsHeader); | ||
| export default class ClassicsHeader extends Component { | ||
| static propTypes = { | ||
| primaryColor: PropTypes.string, | ||
| accentColor: PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
| render() { | ||
| return (<RCTClassicsHeader {...this.props}/>) | ||
| } | ||
| } |
34 changes: 17 additions & 17 deletions
DefaultHeader.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| import React, {Component} from 'react'; | ||
| import {requireNativeComponent} from 'react-native'; | ||
| import {ViewPropTypes} from './Util'; | ||
| import PropTypes from 'prop-types'; | ||
|
|
||
| const RCTDefaultHeader = requireNativeComponent('RCTDefaultHeader', RCTDefaultHeader); | ||
|
|
||
| export default class DefaultHeader extends Component { | ||
| static propTypes = { | ||
| primaryColor: PropTypes.string, | ||
| accentColor: PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
|
|
||
| render() { | ||
| return (<RCTDefaultHeader {...this.props}/>) | ||
| } | ||
| import React, {Component} from 'react'; | ||
| import {requireNativeComponent} from 'react-native'; | ||
| import {ViewPropTypes} from './Util'; | ||
| import PropTypes from 'prop-types'; | ||
| const RCTDefaultHeader = requireNativeComponent('RCTDefaultHeader', RCTDefaultHeader); | ||
| export default class DefaultHeader extends Component { | ||
| static propTypes = { | ||
| primaryColor: PropTypes.string, | ||
| accentColor: PropTypes.string, | ||
| ...ViewPropTypes, | ||
| } | ||
| render() { | ||
| return (<RCTDefaultHeader {...this.props}/>) | ||
| } | ||
| } |
3 changes: 0 additions & 3 deletions
Example/.babelrc
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
Example/.eslintrc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| module.exports = { | ||
| root: true, | ||
| extends: '@react-native-community', | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
Example/.gitattributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| *.pbxproj -text | ||
| # Windows files should use crlf line endings | ||
| # https://help.github.com/articles/dealing-with-line-endings/ | ||
| *.bat text eol=crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
Example/.prettierrc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = { | ||
| bracketSpacing: false, | ||
| jsxBracketSameLine: true, | ||
| singleQuote: true, | ||
| trailingComma: 'all', | ||
| arrowParens: 'avoid', | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.