-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add peek pop example to playground app
This commit also allows TouchablePreview component to accept any touchable components, not only the ones included in RN.
- Loading branch information
Showing
5 changed files
with
53 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
const React = require('react'); | ||
const {Button} = require('react-native-ui-lib'); | ||
module.exports = (props) => | ||
<Button | ||
{...props} | ||
style={{ | ||
marginBottom: 8, | ||
}} | ||
/>; | ||
const { Button } = require('react-native-ui-lib'); | ||
class RnnButton extends React.PureComponent { | ||
render() { | ||
return ( | ||
<Button | ||
{...this.props} | ||
style={{ | ||
marginBottom: 8, | ||
}} | ||
/> | ||
) | ||
} | ||
} | ||
|
||
module.exports = RnnButton |
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