New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

touchstack

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

touchstack

Awesome App Framework powered by React & Apache Cordova

  • 0.3.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-84.21%
Maintainers
1
Weekly downloads
 
Created
Source

TouchStack

NPM Version NPM Downloads

Currently in dev/planning

Documentation

[Click here](https://github.com/hubstack/touchstack/wiki/Getting Started)

Examples

Complete Project: https://github.com/hubstack/touchstack-example

Sample App

import React from 'react'
import ReactDOM from 'react-dom'
import {
  Application,
  StatusBar,
  View,
  ViewsManager,
  Label,
  Link
} from 'touchstack'

var App = React.createClass({
  render () {
    return (
      <Application>
        <StatusBar />
        <ViewsManager defaultView="homeView">
          <View name="homeView">
            <Label>Hello World!</Label>
            <Link to="secondView" transition="showFromRight">Go to second view!</Link>
          </View>
          <View name="secondView">
            <Link to="homeView" transition="revealFromRight">Go back</Link>
          </View>
        </ViewsManager>
      </Application>
    );
  }
});

function initApplication () {
	ReactDOM.render(<App />, document.getElementById('application'));
}

if (!window.cordova) {
	initApplication();
} else {
	document.addEventListener('deviceready', initApplication, false);
}

Core Components

ViewsManager Example
<ViewsManager defaultView="homeView">
  <View name="homeView">
    <Label>Home View</Label>
  </View>
  <View name="anotherView">
    <Label>Another View</Label>
  </View>
</ViewsManager>
View Example
<View>
  <Label text="Hello World" />
</View>
Panel Example
<Panel>
  <Label text="UhOh" />
</Panel>

Scrollable area:

<Panel type="scrollable" onScroll={event...}>
  <Label text="UhOh" />
</Panel>

This use flex display mode for grids:

<Panel type="row">
  <Label text="UhOh" />
</Panel>
StatusBar Example
<StatusBar />

Light text color:

<StatusBar type="light" />

UI Components

NavigationBar Example
<NavigationBar title="Title" />
SearchBar Example
<SearchBar placeholder="Search here" value={value...}
  onChange={event...}
  onCancel={event...}
  onSubmit={event...}
/>
Label Example
<Label>Text</Label>
Icon Example
<Icon icon="ion-ios-search" />

Keywords

FAQs

Package last updated on 04 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc