-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from Psychedelic/0.4.0-rebased
0.4.0
- Loading branch information
Showing
170 changed files
with
3,865 additions
and
2,329 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -50,6 +50,5 @@ allprojects { | |
|
||
google() | ||
maven { url 'https://www.jitpack.io' } | ||
jcenter() | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,18 @@ | ||
diff --git a/node_modules/mime-types/index.js b/node_modules/mime-types/index.js | ||
index b9f34d5..68ccbe9 100644 | ||
--- a/node_modules/mime-types/index.js | ||
+++ b/node_modules/mime-types/index.js | ||
@@ -13,7 +13,12 @@ | ||
*/ | ||
|
||
var db = require('mime-db') | ||
-var extname = require('path').extname | ||
+ | ||
+const extname = (path) => { | ||
+ if (!path || path.indexOf('.') === -1) { return '' } | ||
+ path = '.' + path.split('.').pop().toLowerCase() | ||
+ return /.*(\..*)/g.exec(path)[1] || '' | ||
+} | ||
|
||
/** | ||
* Module variables. |
This file contains 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,15 @@ | ||
diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js | ||
index 6a343d8..474b2ec 100644 | ||
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js | ||
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js | ||
@@ -111,6 +111,10 @@ class KeyboardAvoidingView extends React.Component<Props, State> { | ||
this._initialFrameHeight = this._frame.height; | ||
} | ||
|
||
+ if (this.props.onLayout) { | ||
+ event.persist(); | ||
+ } | ||
+ | ||
if (wasFrameNull) { | ||
await this._updateBottomIfNecessary(); | ||
} |
This file contains 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
This file contains 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
19 changes: 19 additions & 0 deletions
19
src/components/buttons/ScrollableButton/hooks/useScrollHandler.ts
This file contains 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,19 @@ | ||
import { useState } from 'react'; | ||
import { NativeScrollEvent, NativeSyntheticEvent } from 'react-native'; | ||
|
||
function useScrollHanlder() { | ||
const [scrollPosition, setScrollPosition] = useState(0); | ||
|
||
const handleOnScroll = ( | ||
scrollEvent: NativeSyntheticEvent<NativeScrollEvent> | ||
) => { | ||
setScrollPosition(scrollEvent?.nativeEvent?.contentOffset.y); | ||
}; | ||
|
||
return { | ||
scrollPosition, | ||
handleOnScroll, | ||
}; | ||
} | ||
|
||
export default useScrollHanlder; |
Oops, something went wrong.