0.0.5 • Published 4 years ago

steffes-react-native v0.0.5

Weekly downloads
21
License
-
Repository
github
Last release
4 years ago

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>
    )
  }
}
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago