forked from FormidableLabs/react-native-app-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/nonce touchup (FormidableLabs#231)
* Revet sha265 -> sha256 * Wrap app in a SafeAreaView * Add useNonce param at the end of the the args instead of in the middle * Add a test for the nonce parameter * Add typescript definition for useNonce * Update readme to add useNonce
- Loading branch information
1 parent
a83ce89
commit 6cf59be
Showing
9 changed files
with
99 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
// @flow | ||
|
||
import React from 'react'; | ||
import styled from 'styled-components/native'; | ||
|
||
export default styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg') | ||
const SafeArea = styled.SafeAreaView` | ||
flex: 1; | ||
`; | ||
|
||
const Background = styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg'), | ||
})` | ||
flex: 1; | ||
background-color: white; | ||
padding: 40px 10px 10px 10px; | ||
`; | ||
|
||
export default ({ children }) => ( | ||
<Background> | ||
<SafeArea>{children}</SafeArea> | ||
</Background> | ||
); |
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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
// @flow | ||
|
||
import React from 'react'; | ||
import styled from 'styled-components/native'; | ||
|
||
export default styled.ImageBackground.attrs({ | ||
const SafeArea = styled.SafeAreaView` | ||
flex: 1; | ||
`; | ||
|
||
const Background = styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg') | ||
})` | ||
flex: 1; | ||
background-color: white; | ||
padding: 40px 10px 10px 10px; | ||
`; | ||
|
||
export default ({ children }) => ( | ||
<Background> | ||
<SafeArea>{children}</SafeArea> | ||
</Background> | ||
); |
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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
// @flow | ||
|
||
import React from 'react'; | ||
import styled from 'styled-components/native'; | ||
|
||
export default styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg') | ||
const SafeArea = styled.SafeAreaView` | ||
flex: 1; | ||
`; | ||
|
||
const Background = styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg'), | ||
})` | ||
flex: 1; | ||
background-color: white; | ||
padding: 40px 10px 10px 10px; | ||
`; | ||
|
||
export default ({ children }) => ( | ||
<Background> | ||
<SafeArea>{children}</SafeArea> | ||
</Background> | ||
); |
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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
// @flow | ||
|
||
import React from 'react'; | ||
import styled from 'styled-components/native'; | ||
|
||
export default styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg') | ||
const SafeArea = styled.SafeAreaView` | ||
flex: 1; | ||
`; | ||
|
||
const Background = styled.ImageBackground.attrs({ | ||
source: require('../assets/background.jpg'), | ||
})` | ||
flex: 1; | ||
background-color: white; | ||
padding: 40px 10px 10px 10px; | ||
`; | ||
|
||
export default ({ children }) => ( | ||
<Background> | ||
<SafeArea>{children}</SafeArea> | ||
</Background> | ||
); |
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