Skip to content

Instantly share code, notes, and snippets.

{
"name": "hello-next",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "next",
"build": "next build",
"start": "next start"
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',
#define CALL_ORIGIN NSLog(@"FUNC: %s CALLER: [%@]", __PRETTY_FUNCTION__, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"[]"]] objectAtIndex:1])