Using JavaScript Global Library in Angular CLI Application

Not like AngularJS 1.x written in JavaScript, Angular is a complete rewrite using TypeScript. When migrating your project from AngularJS to Angular, you may wonder how to use JavaScript global libraries, such as jQuery, in the new framework.  In this article, I will use DWT (Dynamic Web TWAIN) JavaScript library as an example to illustrate how to use a JavaScript global library in an Angular CLI application.

Read more

How to Write and Use TypeScript Declaration File

TypeScript, developed by Microsoft, is a superset of JavaScript. It features static typing, class, and interface. Comparing to JavaScript, One of my favorite TypeScript features is that we can create a TypeScript declaration file (.d.ts) for IntelliSense in Visual Studio Code or other supported IDEs. In this article, I will share how to write a definition file for JavaScript APIs of Dynamic Web TWAIN SDK, as well as how to implement a web document scanning app using TypeScript.

Read more

React Native Bridging Modules for Android from Scratch on Windows

When using React Native to write mobile apps, JavaScript is the primary programming language. However, sometimes, you may want to call a platform API that not supported by existing React Native component or use a third-party Android library that built as an AAR file. For these cases, you need to write native code for bridging using Android Studio and Xcode. In this article, I will demonstrate how to create a simplest React Native Bridge module step by step.

Read more

Using JavaScript Camera SDK to Capture and Upload Images

Dynamsoft Camera SDK allows developers to build web camera apps with pure HTML, CSS, and JavaScript. In most cases, front-end programming skill is enough. Occasionally, you may want to add some server-side functionalities, such as file uploading and processing. In this article, let’s see how to upload captured images from within web browsers to the server using JavaScript camera APIs and Node.js.

Read more

React Native for Android: Basic Knowledge Before Coding

React Native is a JavaScript framework that enables developers to build mobile apps for Android and iOS platforms with one codebase. Even if you are a web developer, you can quickly develop mobile applications using React Native. Not like Cordova that uses WebViews, React Native produces a truly native user experience with better performance. A React Native app is a real mobile app. In this article, I want to share some basic knowledge of React Native.

Read more

Building Node.js Barcode Addon with DBR v5.0

Dynamsoft recently released Barcode Reader SDK v5.0 for Windows. You can think of it as a brand new product because a large number of APIs and data structures are redefined. If you have downloaded DBR v5.0 and tried to build Node.js barcode addon with it, you have to spend some time modifying the sample code that written for DBR v4.x. In this article, I will share the difference between DBR v4.x and DBR v5.0, as well as how to update the current code to fit the new interfaces.

Read more