@volkan/smartface-component-application

0.3.3 • Public • Published
 ____                       _    __                      _
/ ___| _ __ ___   __ _ _ __| |_ / _| __ _  ___ ___      (_) ___
\___ \| '_ ` _ \ / _` | '__| __| |_ / _` |/ __/ _ \     | |/ _ \
 ___) | | | | | | (_| | |  | |_|  _| (_| | (_|  __/  _  | | (_) |
|____/|_| |_| |_|\__,_|_|   \__|_|  \__,_|\___\___| (_) |_|\___/
-----------------------------------------------------------------

smartface.io <Application /> React Component.

About

This is a React component for the root-level smartface.io application.

Installation

Install it via npm:

npm install @volkan/smartface-component-application --save

Note that if you are using one of the official smartface.io repositories, chances are that this dependency might already been installed for you.

Usage Example

// #region Smartface core dependencies
import Application from '@volkan/smartface-component-application';
import { mount } from '@volkan/smartface-core-device';
import React from 'react';
// #endregion

const log = console.log;

/* eslint-disable no-alert */
mount(
    <Application onStart={() => alert( 'smartface.io loves you!' )} />
);
/* eslint-enable no-alert */

log( '\n\n*** Smartface app is up and running! ***\n\n' );

Dependencies

You cannot use this module standalone, you need to import it in a smartface.io-capable project; and you have to use the smartface.io Cloud IDE.

Package Scripts

Here are the npm scripts associated with this module:

  • npm run test: Runs unit tests.
  • npm run lint: Verifies the correctness of the source code.

Important Files and Folders

  • ./index.js: The main entry module.
  • ./bin: Binaries that are used by the NPM scripts.
  • ./package.json: The package definition.
  • ./CHANGELOG.md: A log of what has been done since the last version.
  • ./CODE_OF_CONDUCT.md: Basically tells the collaborators to be nice to each other.
  • ./README.md: This very file.

Wanna Help?

Any help is more than appreciated.

If you want to contribute to the source code fork this repository and create a pull request

In lieu of a formal styleguide, take care to maintain the existing coding style.

Also don’t forget to add unit tests for any new or changed functionality.

If you want to report a bug; or share a comment or suggestion, file an issue.

Supported Environments

You have to use this repository from within the smartface.io Cloud IDE.

This demo application crates binaries for Android and iOS devices.

I’ve Found a Bug, I Have an Idea

Please file an issue and lest us know too.

Contact Information

From the smartface.io Team

Hello Fellow Developer

Thank you for using Smartface Cloud!

Developing native apps for iOS and Android is as easy as a few lines of JavaScript code.

Start coding right away and to view your app instantly on a real device, just click the Run on Device button and follow the instructions.

You can also update your native apps remotely and manage their lifecycle end-to-end, fully in the cloud.

Welcome to the world of mobility!

Smartface Team.

Code of Conduct

We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

See the code of conduct for details.

Support, Documentation, and Useful Links

Package Sidebar

Install

npm i @volkan/smartface-component-application

Weekly Downloads

1

Version

0.3.3

License

MIT

Last publish

Collaborators

  • volkan