juicycleff / showcase-template

A React Native template that helps developers to showcase their amazing libraries examples.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showcase Template

npm npm npm runs with expo

A React Native template that helps developers to showcase their amazing libraries examples.


Installation

yarn add @gorhom/showcase-template
# or
npm install @gorhom/showcase-template

Usage

import React from 'react';
import { Alert } from 'react-native';
import Showcase from '@gorhom/showcase-template';

const DemoScreen = () => (
  <View>
    <ShowcaseLabel>Demo Screen</ShowcaseLabel>
  </View>
);

const data = [
  {
    title: 'Group 1',
    data: [
      {
        name: 'Default',
        slug: 'default',
        getScreen: () => DemoScreen,
      },
      {
        name: 'Example A',
        slug: 'example-a',
        getScreen: () => DemoScreen,
      },
      {
        name: 'Example B',
        slug: 'example-b',
        getScreen: () => DemoScreen,
      },
    ],
  },
  {
    title: 'Group 2',
    data: [
      {
        name: 'Example C',
        slug: 'example-c',
        getScreen: () => DemoScreen,
      },
      {
        name: 'Example D',
        slug: 'example-d',
        getScreen: () => DemoScreen,
      },
    ],
  },
];

export default function App() {
  return (
    <Showcase
      version="0.0.0"
      name="Awesome Library"
      description="It can do anything 🤯"
      author={{
        username: '@gorhom',
        url: 'https://twitter.com/gorhom',
      }}
      data={data}
    />
  );
}

Built With ❤️

Author

License

MIT


Mo Gorhom

About

A React Native template that helps developers to showcase their amazing libraries examples.

License:MIT License


Languages

Language:TypeScript 77.3%Language:JavaScript 15.9%Language:Handlebars 6.8%