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
class RoundImage extends React.Component { | |
state = { borderRadius: null } | |
// tactical hacks inbound | |
componentDidMount() { | |
setTimeout(function() { // for some reason, have to do this async for it to work | |
const image = this.refs.image | |
image.measure((a, b, width, height, px, py) => { | |
this.setState({borderRadius: width / 2}) | |
}) |
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
// see https://github.com/firebase/firebase-ios-sdk/issues/2179 | |
// | |
// this is a hack workaround that periodically copies the Firebase credentials | |
// between your main app and your share extension, | |
// thus allowing the extension to authenticate using the same creds | |
// | |
// make sure you've created an app group beforehand so they can share that storage | |
#import <Foundation/Foundation.h> | |
#import "FirebaseAuthSync.h" |
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
// Based on https://github.com/ecadlabs/taquito/blob/master/packages/taquito-remote-signer/src/taquito-remote-signer.ts#L155 | |
const { | |
b58cdecode, | |
b58cencode, | |
buf2hex, | |
hex2buf, | |
isValidPrefix, | |
mergebuf, | |
prefix, |