Last active
June 29, 2017 00:46
-
-
Save ivanph/7f81cce658208b176040e557b77ec4e0 to your computer and use it in GitHub Desktop.
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
import React, {Component} from 'react'; | |
import {Text} from 'react-native'; | |
export default class extends Component { | |
render () { | |
if (!__DEV__) return null; | |
return ( | |
<Text style={{ | |
fontSize: 22, | |
fontWeight: 'bold', | |
color: 'red' | |
}}> | |
{this._reactInternalInstance._currentElement._owner._currentElement.type.name} | |
</Text> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment