ndgnuh-rn-button

Button for React-Native

Usage no npm install needed!

<script type="module">
  import ndgnuhRnButton from 'https://cdn.skypack.dev/ndgnuh-rn-button';
</script>

README

ndgnuh-rn-button

About

A button component for react-native

install

yarn add ndgnuh-rn-button

or

npm install ndgnuh-rn-button

Usage

import React, { Component } from 'react';
import {View, Text}from 'react-native';
import Button from 'ndgnuh-rn-button';

class Example extends Component {
    render () {
        // please wrap everything in a <View/> so that TouchableNativeFeedback would work
        return (
          <Button>
            <View>
                <Text>Text, Image or Icon. anything herer</Text>
            </View>
          </Button>
        )
    }
}