open-native

Open Native brings cross-platform communities together to help them collaborate and strengthen each other through development diversity.

MIT License

Downloads
109
Stars
454
Committers
6

Bot releases are hidden (Show)

open-native - v2.0.0-alpha.17 Latest Release

Published by ammarahm-ed 11 months ago

  • Numerous bug fixes and performance improvements since 2.0.0-alpha.0 release.
open-native - View Managers and Native Modules, Open Native now handles it all 🎉

Published by ammarahm-ed over 1 year ago

In just a span of few weeks, Open Native has gone through a serious overhaul with changes that will help future proof our support for react native modules and views.

In v1.0.0 Open Native heavily depended upon metadata generated at compile time for modules. This worked well but it was prone to breaking and always in need of maintenance and filling in for different edge cases in regex parsing.

In v2.0.0 we have switched to doing this at runtime similar to how it's done in React Native. This means we can now almost guarantee that any react native module will work drop-in with Open Native.

  • React Native modules written in swift required patching the .swift files previously. This was bad and breaking. Now swift modules are fully supported without the need to patch anything.
  • Support for React Native modules written in Kotlin.
  • View Managers support is finally here. This means that we can reuse the native code written for a react native module and write a JS layer for it that works in other JS frameworks like Vue, Svelte, SolidJS & Angular. The native layer is always hard to write since most of us a JS devs and don't want to touch native code. I was always skeptical about whether to support view libraries from React Native because they won't work drop in. I have finally reached the conclusion that it's going to be good and help us avoid rewriting same native components that have already been there and trialed and tested over the years.
  • Open Native docs are now published at the official website https://open-native.org.

Thanks to the @NativeScript community for being open and welcoming towards Open Native and all the effort around it.

open-native - 1.0.0-alpha.38

Published by ammarahm-ed over 1 year ago

  • Fix result from startActivityForResult not handled correctly on android
open-native - 1.0.0-alpha.37

Published by ammarahm-ed over 1 year ago

  • Explicitly parse all primitive values on android during auto linking
  • Fix conversion of primitives on android on method call
open-native - 1.0.0-alpha.36

Published by ammarahm-ed over 1 year ago

  • Fix all params of a method are parsed as required in module meta on android
open-native - 1.0.0-alpha.35

Published by ammarahm-ed over 1 year ago

  • Fix BOOL * param type is parsed as other on ios
open-native - 1.0.0-alpha.34

Published by ammarahm-ed over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/OpenNative/open-native/compare/1.0.0-alpha.33...1.0.0-alpha.34

open-native - 1.0.0-alpha.33

Published by ammarahm-ed over 1 year ago

  • Add missing BaseActivityEventListener class on android
open-native - 1.0.0-alpha.32

Published by ammarahm-ed over 1 year ago

  • Added support for auto-linking packages with multiple subspecs on iOS
open-native - 1.0.0-alpha.31

Published by ammarahm-ed over 1 year ago

  • Added RCTNativeAppEventEmitter on android
  • Added support for loading private modules on android via their public Package
  • Added support for parsing extended class methods on iOS
  • Fixed a issue where empty interfaces would be added to generated headers causing build to fail on iOS
  • Parse promise/callback blocks when defined as nonnull on iOS
open-native - 1.0.0-alpha.29

Published by ammarahm-ed over 1 year ago

  • Added missing [RCTBridge eventDispatcher] method implementation
open-native - 1.0.0-alpha.28

Published by ammarahm-ed over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/OpenNative/open-native/compare/1.0.0-alpha.26...1.0.0-alpha.27

open-native - 1.0.0-alpha.26

Published by ammarahm-ed over 1 year ago

  • Fixed the "path" argument must be of type string. Received undefined error when have some npm dependency with no exports such as types packages.
open-native - 1.0.0-alpha.25

Published by ammarahm-ed over 1 year ago

  • Fix Alert.alert(title,message) not accepting numbers as title/message.
  • Add a dummy react-native source inside node_modules folder if it does not exist. Required to build some libraries on android.
open-native - 1.0.0-alpha.23

Published by ammarahm-ed over 1 year ago

  • Fix(ios): Marshal all data types. If we are unable to explicitly marshal a native value, we should allow marshalling it using Utils.dataDeserialize. This commit also adds handling of NSError to Error conversion explicitly. Closes #15
open-native - 1.0.0-alpha.22

Published by ammarahm-ed over 1 year ago

  1. Automatically add webpack polyfill for react when using react-native modules in a non-react framework such as vue/svelte. If you were using react-polyfill of some sort before, it's safe to remove it now.
  2. Added support for synchronous methods on iOS
open-native - 1.0.0-alpha.21

Published by ammarahm-ed over 1 year ago

  • Fix unable to find android project properties
open-native - 1.0.0-alpha.20

Published by ammarahm-ed over 1 year ago

This release simplifies installation steps on android. See documentation for details.

apply from: new File(["node", "--print", "require.resolve('@open-native/core/package.json')"].execute(null, rootDir).text.trim(), "../scripts/open-native.gradle");
- ext {
-        buildToolsVersion = '33.0.0'
-        minSdkVersion = 23
-        compileSdkVersion = 33
-         targetSdkVersion = 33
-         androidXCoreVersion = "1.8.0"
-         androidXCompatVersion = "1.5.1"
-         reactNativeProjects = []
- }
open-native - 1.0.0-alpha.19

Published by ammarahm-ed almost 2 years ago

  1. Fixed methodQueue missing in Linking module metadata
  2. Use @rigor789/resolve-package-path to resolve
    package path for modules that give error ERR_PACKAGE_PATH_NOT_EXPORTED
  3. Added Alert module so you can now do import { Alert } from "react-native & use it.
  4. Added getConstants method to native module
  5. Fixed class extraction regex to only extract class declaration that is public on android
  6. Extract module name from @ReactModule annotation when possible because modules for new arch might not have the getName method defined on android
  7. Skip source files that do not have a module exported
  8. Added support to auto-link CoreModules on iOS
Package Rankings
Top 8.55% on Npmjs.org
Related Projects