O U I C O D I N G

Microsoft brings a new way to build native applications for its Windows operating system, but also for macOS. The new method is based on React Native, the open source mobile application framework created by Facebook. It allows you to run your applications on PC, Xbox, tablets, thanks to the Windows extension for React Native and JavaScript. You can do the same for the whole macOS ecosystem. Microsoft’s initiative will help make React Native more popular than it already is.

React Native is a framework developed by Facebook that allows developers to create applications on native platforms and using a consistent development experience based on JavaScript and React, a JavaScript library implemented by Facebook to create user interfaces. React Native focuses on developer efficiency on all platforms. It is initially designed to create native applications for Android and iOS, but Microsoft is now extending it to other platforms.

React Native for Windows and Mac now provides React Native support for the Windows 10 SDK as well as the macOS 10.12 SDK. With the latter, you can use JavaScript to create native Windows applications for all devices supported by Windows 10, including PCs, tablets, 2-in-1 devices, Xbox, mixed reality devices, etc., as well as macOS desktop and notebook ecosystems. The React Native extension for Windows and macOS and all code is provided under the MIT license.

Microsoft’s React Native extension is at version 0.62 released last February. This version is fully updated from the latest version of React Native Core. Version 0.61 of the tool reduces the steps needed to start its implementation on Windows. It also induces a performance improvement thanks to its threading model. “We have updated the host and instance infrastructure in React Native for Windows to provide a more robust and consistent threading model,” the development team wrote in a post.

Since this update, the extension natively supports SVG files. For this, you don’t need any separate component or module, just use the Image component in your React Native application and when you target Windows, your SVG files will be loaded and used properly. It also introduces support for dual-screen devices. This means that React Native developers will be able to be easily notified when their application is displayed on one or both screens.

The API automatically adjusts to the seam allowance of the hinge in the center so that no information from the application is lost. In addition, several other changes are planned in the development roadmap of the tool since February :

March

  • Turbo modules ;
  • Lottie support ;
  • Upgrade to version 0.62 ;
  • completion of the API (accessibility, display style) ;
  • integration with react-native init ;
  • integration with Facebook documentation ;
  • survey on Turbo modules.

April

  • AsyncStorage/FS modules ;
  • Helix for lower level tests ;
  • completion of the API (TouchableWithoutFeedback, AppState, LayoutAnimatoin, ScrollView) ;
  • keyboard improvements (autofocus, lost focus, tabulation, etc.) ;
  • community module directory ;
  • VSCode integration, TypeScript, direct debugging, Windows configuration ;
  • WinUI 3.0 targeting.

Sources : React Native for Windows & macOSPage GitHub de l’outil

, by Bill Fassinou

Articles Similaires

OUIcoding facilite, permet, promeut et célèbre l’innovation !

Informations

Nous suivre

Email: [email protected]
Tél: +33 1 84 19 03 47 
Tél: +33 6 58 26 23 59