Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing token list error and adding mini dapp code for DAOstack
- Loading branch information
1 parent
6367a3c
commit 1715758
Showing
25 changed files
with
1,009 additions
and
54 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
Submodule ios
updated
from 678ece to 7d06f0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
import Modal from "react-native-modal"; | ||
import React, {Component} from "react"; | ||
import { StyleSheet } from "react-native"; | ||
|
||
export default class ModalComponent extends Component<Props> { | ||
state = { | ||
isVisible: false, | ||
pin: '' | ||
}; | ||
|
||
render() { | ||
return ( | ||
<Modal isVisible={this.props.isVisible} onBackdropPress={this.props.onBackdropPress} style={styles.modal} animationIn={'slideInUp'} animationOut={'slideOutDown'}> | ||
{this.props.children} | ||
</Modal> | ||
) | ||
} | ||
|
||
} | ||
const styles = StyleSheet.create({ | ||
modal: { | ||
margin: 0, | ||
}, | ||
}); |
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,82 @@ | ||
import React from 'react'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import Modalize from 'react-native-modalize'; | ||
|
||
export default class ModalizeModal extends React.PureComponent { | ||
|
||
modal = React.createRef(); | ||
|
||
renderContent = () => ( | ||
<View style={s.content}> | ||
<Text style={s.content__heading}>Article title</Text> | ||
<Text style={s.content__paragraph}>rkslajnf ndg dnfgkjnsdkjgndlkjngdjkf ngjkd ngjkl ndflg jkndfj ngdlkj nglsdfkjn gfkdjn gjdkfn gkdjfn ldkjn fslkjndfgkjs ndklgjn dfkjn gkjdfn gkdjfn glkjdnf glkjsnglkjn slkj ngkj nsdfgkj nsdfkj gnkdfjn gkjdsn gkljsn gjkfdn glkj nsgjkldf ngsljk ndfg</Text> | ||
</View> | ||
); | ||
|
||
onClosed = () => { | ||
const { onClosed } = this.props; | ||
|
||
if (onClosed) { | ||
onClosed(); | ||
} | ||
}; | ||
|
||
openModal = () => { | ||
if (this.modal.current) { | ||
this.modal.current.open(); | ||
} | ||
}; | ||
|
||
render() { | ||
return ( | ||
<Modalize | ||
ref={this.modal} | ||
onClosed={this.onClosed} | ||
handlePosition="outside" | ||
adjustToContentHeight | ||
> | ||
{this.props.children} | ||
</Modalize> | ||
); | ||
} | ||
} | ||
|
||
const s = StyleSheet.create({ | ||
content: { | ||
padding: 15, | ||
}, | ||
|
||
content__heading: { | ||
marginVertical: 10, | ||
|
||
fontSize: 24, | ||
fontWeight: '600', | ||
color: '#333', | ||
}, | ||
|
||
content__paragraph: { | ||
fontSize: 15, | ||
fontWeight: '200', | ||
lineHeight: 22, | ||
color: '#666', | ||
}, | ||
|
||
modal: { | ||
margin: 20, | ||
|
||
backgroundColor: '#cac9dd', | ||
borderRadius: 20, | ||
|
||
shadowOpacity: 0, | ||
}, | ||
|
||
overlay: { | ||
backgroundColor: 'rgba(41, 36, 107, 0.9)', | ||
}, | ||
|
||
handle: { | ||
width: 150, | ||
|
||
backgroundColor: '#b0afbc', | ||
}, | ||
}); |
Oops, something went wrong.