Torrent details for "Gaitatzis T. JavaScript Native Interface. Build cross-platform apps...2024 [andryold1]"    Log in to bookmark

wide
Torrent details
Cover
Download
Torrent rating (0 rated)
Controls:
Category:
Language:
English English
Total Size:
101.54 MB
Info Hash:
488dfa866ce5678f6cc473a5ccf12516e770487d
Added By:
Added:  
03-06-2024 10:16
Views:
145
Health:
Seeds:
52
Leechers:
5
Completed:
334
wide




Description
wide
Externally indexed torrent
If you are the original uploader, contact staff to have it moved to your account
Textbook in PDF format

In mobile development, there is a trade-off between portability code and fast execution. A new feature of React Native called JavaScript Native Interface (JSI) removes that trade-off by allowing developers to write portable code that executes as binary code on the native device.
JavaScript Interface (JSI) offers developers to the convenience of cross-platform apps with the performance of native apps. It lets developers to write functions in C   that can be called directly from JavaScript, for example in a React Native front-end. It works by combining two existing features of React Native:
• The native code (for example Swift or Java) can call binary functions from compiled C  
• React Native JavaScript can call properly-defined native functions
C   code can be written in a cross-platform way and compiled for a variety of devices, such as Android and iOS, as long as it doesn’t work on device-specific or platform-specific features such as user interfaces or certain hardware such as sensors or specific camera features. Since both the JavaScript and C   are cross-platform and the native layer can bind these languages together, it is possible to create React Native apps for several platforms with one code base. JavaScript Native Interface code must be written so that functions and data types are compatible with the JavaScript type system, and those functions must be properly exported to the JavaScript environment. This book will walk you through understanding how to set up a React Native project to use JSI, and how to implement common function types in JSI, including those that take or return arrays and complex object types, Promises, and multi-threaded functions.
JavaScript Interface (JSI) is a lightweight, general-purpose API provided by Facebook for interacting with JavaScript data types and functions in C   code. Introduced in the context of React Native, JSI offers a way to call C   functions directly from JavaScript and vice versa. Before JSI, React Native used a “Native Bridge” feature, which required that developers write native code in the device-native language, for example Swift on iOS and Java or Kotlin on Android. React Native developers who wanted to have the performance of a native app therefore needed to maintain two code-bases for the same features. JSI solves this by allowing developers to maintain high-performance code in only one language: C  . While JSI brings numerous advantages, especially for complex and performance-critical applications, it's worth noting that it requires a good understanding of both C   and JavaScript, as well as the internals of React Native. As such, it's often used for building advanced features, or optimizing performance-critical paths.
What You Will Learn:
This book teaches you how to write JSI code so that you can have write-once, run-everywhere mobile apps that feel like they are written in native code.
You will learn how to set up a JSI project on MacOS, Windows, and Linux. It will teach you how to register native functions, and how to accept any type of parameter and return any type of value. Importantly, this also includes working with objects, arrays, callback functions, and promises.
Introduction
What is JavaScript Native Interface
Prepare Your Environment
Integrating Into a Project
Function 1: Accepts No Parameters and Returns Void
Function 2: Accepts No Parameters and Returns a String
Function 3: Returns Primitive Type
Function 4: Accepts Primitive Type Parameters
Function 5: Accepts Multiple Parameters
Function 6: Returns an Array
Function 7: Returns an Object
Function 8: Accepts Mixed Types for a Parameter
Function 9: Accepts Objects as Parameters
Function 10: Accepts Arrays as Parameters
Function 11: Returns a Promise
Function 12: Accepts Callback Functions as Parameters
Function 13: Accepts Functions with Parameters as Arguments
Function 14: Throws Errors
Appendix I: JSI Data Types
Appendix II: Glossary

  User comments    Sort newest first

No comments have been posted yet.



Post anonymous comment
  • Comments need intelligible text (not only emojis or meaningless drivel).
  • No upload requests, visit the forum or message the uploader for this.
  • Use common sense and try to stay on topic.

  • :) :( :D :P :-) B) 8o :? 8) ;) :-* :-( :| O:-D Party Pirates Yuk Facepalm :-@ :o) Pacman Shit Alien eyes Ass Warn Help Bad Love Joystick Boom Eggplant Floppy TV Ghost Note Msg


    CAPTCHA Image 

    Anonymous comments have a moderation delay and show up after 15 minutes