steffes-react-native
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

steffes-react-native

Steffes Group React Native package.

NPM JavaScript Style Guide CircleCI codecov

Install

npm install --save steffes-react-native

Usage

In order to run the example app run yarn in the example folder then yarn start:ios to install the app on the emulator. Once that is done kill the metro bundler and delete the react-native folder from the example/node_modules folder and run yarn start

import React, { Component } from 'react'
import {View} from 'react-native'
 
import {TouchableImage} from 'steffes-react-native'
 
class Example extends Component {
  render() {
    return(
      <View>
        <TouchableImage
          style={{
            height: 200,
            width: 200
          }}
          onPress={() => alert(require('../Logo.png'))}
          resizeMode='contain'
          source={require('../Logo.png')}
        />
      </View>
    )
  }
}

Components

TouchableImage

Description

A Image that responds to touch events.

Props

Usage

import React, { Component } from 'react'
import {View} from 'react-native'
 
import {TouchableImage} from 'steffes-react-native'
 
class Example extends Component {
  render() {
    return(
      <View>
        <TouchableImage
          style={{
            height: 200,
            width: 200
          }}
          onPress={() => alert(require('../Logo.png'))}
          resizeMode='contain'
          source={require('../Logo.png')}
        />
      </View>
    )
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i steffes-react-native

Weekly Downloads

8

Version

0.0.5

License

none

Unpacked Size

65.9 kB

Total Files

19

Last publish

Collaborators

  • cbernard23
  • jake4e
  • chris.bernard