All Projects → Especializa → nativescript-whatsapp-template

Especializa / nativescript-whatsapp-template

Licence: Apache-2.0 license
NativeScript Template Similar to WhatsApp

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to nativescript-whatsapp-template

nativesapp
Simple WhatsApp clone just for training purposes - Course Angular Native at www.udemy.com/angular-native
Stars: ✭ 19 (-68.85%)
Mutual labels:  whatsapp, nativescript, nativescript-template
nativescript-ng-shadow
Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Stars: ✭ 54 (-11.48%)
Mutual labels:  angular2, angular4, nativescript
nativescript-vue-rollup-template
A NativeScript template ready to roll with Vue.js and .vue files.
Stars: ✭ 39 (-36.07%)
Mutual labels:  nativescript, nativescript-template
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (-47.54%)
Mutual labels:  angular2, angular4
Angular4-seed
Angular 4 Seed for Angular Forms
Stars: ✭ 37 (-39.34%)
Mutual labels:  angular2, angular4
nativescript-ng2-drawer-seed
Nativescript template project with drawer support
Stars: ✭ 17 (-72.13%)
Mutual labels:  angular2, nativescript
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-70.49%)
Mutual labels:  angular2, angular4
ng2-acl
Role based permissions for Angular v2++
Stars: ✭ 15 (-75.41%)
Mutual labels:  angular2, angular4
angular2-signature-pad
Signature pad component for Angular 2.x and above.
Stars: ✭ 17 (-72.13%)
Mutual labels:  angular2, angular4
ngx-widget-grid
Angular 2.x or in general ng-x module for dashboards
Stars: ✭ 65 (+6.56%)
Mutual labels:  angular2, angular4
laravel5Angular4
Laravel 5.4 & Angular 4.3.4
Stars: ✭ 37 (-39.34%)
Mutual labels:  angular2, angular4
angular2-webpack-advance-starter
An advanced Angular2 Webpack Starter project with support for ngrx/store, ngrx/effects, ng2-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
Stars: ✭ 49 (-19.67%)
Mutual labels:  angular2, nativescript
Dianoia-app
Mobile (Ionic 3 - Angular 4) app about non-pharmaceutical activities and information for people with dementia.
Stars: ✭ 13 (-78.69%)
Mutual labels:  angular2, angular4
AuthGuard
Example repo for guarding routes post
Stars: ✭ 42 (-31.15%)
Mutual labels:  angular2, angular4
ng-data-picker
🏄🏼 A data picker based on Angular 4+ (like native datetime picker of iOS)
Stars: ✭ 24 (-60.66%)
Mutual labels:  angular2, angular4
ng2-gridstack
A gridstack component for Angular2+
Stars: ✭ 12 (-80.33%)
Mutual labels:  angular2, angular4
tcome-frontend
NodeJS&Angular4 BLOG
Stars: ✭ 49 (-19.67%)
Mutual labels:  angular2, angular4
Ng Drag Drop
Drag & Drop for Angular - based on HTML5 with no external dependencies. 🎉
Stars: ✭ 233 (+281.97%)
Mutual labels:  angular2, angular4
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+4459.02%)
Mutual labels:  angular2, angular4
paper-dashboard-angular
Angular version of the original Paper Dashboard.
Stars: ✭ 142 (+132.79%)
Mutual labels:  angular2, angular4

NativeScript WhatsApp Template apple android

NPM version Downloads Dependencies DevDependencies Twitter Follow

Installation

From the command prompt, start a new Nativescript project doing:

tns create your-project-name --template nativescript-whatsapp-template

Introduction

N|Solid

This project is heavily based on this repo, created as part of the course:

At the moment, only available in Portuguese, but English version is coming soon. Reach out to us on Twitter Twitter Follow if you want to push us to get it done sooner :)

First run

Right after creating a project and then npm install, it should be ready to go. Just move into your project's folder and execute the normal tns command to run any app:

cd your-project-name
npm i
tns run

Alternatively you can target any specifc platform:

tns run android
tns run ios

That's pretty much what you should expect to see for the initial screen:

- Screenshot 1: Chats tab (iOS / Android)

N|Solid

And that's the chat screen upon clicking on any chat item in the previous screen:

- Screenshot 2: Chat screen (iOS / Android)

N|Solid

Removing initial data

You might want to remove all the dummy data as well as some boilerplate code. The content shown relies upon the service core/chats.services.ts inside your app folder. Just replace the content returned there with what you need.

Emptying chats.services.ts

import { Injectable } from '@angular/core';

import { Chat } from './models/chat.model';
import { Message } from './models/message.model';

@Injectable()
export class ChatsService {
  get chats(): Chat[] {
    return [];
  }
  getMessages(chat: Chat): Message[] {
    return [];
  }
}

Another advisable tweak is removing the line which slices the list of messages in the selected chat to get only a chunck of initial 50 ones. The reason for that is just to illustrate that not all messages should appear on landing on that screen, but we wouldn't like to sound too opinionated at this point telling you how to fetch and show your own data.

Replace the slice command on messages-area.component.ts

export class MessagesAreaComponent implements OnInit {
  // ...
  ngOnInit() {
-    this.messages = this.messages.slice(0, 50);
+    // your own code
  }
  // ...
}

Changelog

  • 1.0.0 Initial implementation

License

Apache License Version 2.0, January 2004

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].