
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@unimodules/core
Advanced tools
This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules. You will need to install this before using libraries from Foundation, like `expo-camera`, `expo-media-
This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules.
You will need to install this before using libraries from Foundation, like expo-camera
, expo-media-library
, and others.
The easiest way to do this is to initialize a "custom" project with expo-cli
. If you have an existing app, you can follow these steps instead.
This project requires that you use Cocoapods on iOS, to set iot up see this gist, or relevant parts of the this guide.
npm install @unimodules/core
ios
directory and open your Podfile, make your Podfile look like this one.
use_unimodules!(node_modules_path: '../../../node_modules')
pod install
againAppDelegate.h
and AppDelegate.m
according to this diff.Info.plist
In order to submit your app to the App Store, you will need to eventually add these keys to your Info.plist
. Even if you don't use the APIs described, you need to include the keys because code related to asking the permission will be bundled regardless, and Apple's static analysis tools will detect it and reject your app if the key isn't present. Including the key without using it has no impact to your users. Replace (YOUR APP NAME)
with your app name below.
<key>NSCalendarsUsageDescription</key>
<string>Allow (YOUR APP NAME) to access your calendar</string>
<key>NSCameraUsageDescription</key>
<string>Allow (YOUR APP NAME) to use the camera</string>
<key>NSContactsUsageDescription</key>
<string>Allow (YOUR APP NAME) experiences to access your contacts</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Allow (YOUR APP NAME) to use your location</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Allow (YOUR APP NAME) to use your location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow (YOUR APP NAME) to use your location</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow (YOUR APP NAME) to access your microphone</string>
<key>NSMotionUsageDescription</key>
<string>Allow (YOUR APP NAME) to access your device's accelerometer</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Give (YOUR APP NAME) periences permission to save photos</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Give (YOUR APP NAME) periences permission to access your photos</string>
<key>NSRemindersUsageDescription</key>
<string>Allow (YOUR APP NAME) to access your reminders</string>
apply from: '../node_modules/@unimodules/core/settings.gradle'
and then useUnimodules.apply()
to the top of android/settings.gradle
useUnimodules.apply(nodeModulesPath: "../../../node_modules")
apply from: '../../node_modules/@unimodules/core/build.gradle'
anywhere in android/app/build.gradle
minSdkVersion
in android/build.gradle
to 21MainApplication.java
to according to this diff.It's possible that you will not have to use any of the code provided by this package directly, it may be used only by other Unimodules that you install.
But it's likely that you will want to use something like FileSystem or Permissions, and to do that you can import the following modules like so:
import {
Asset,
Constants,
FileSystem,
Permissions,
} from '@unimodules/core';
You can import them directly from the specific Unimodule packag if you like, but your linter may complain for import a transitive dependency.
import * as Permissions from 'expo-permissions';
FAQs
Universal modules core
The npm package @unimodules/core receives a total of 101,070 weekly downloads. As such, @unimodules/core popularity was classified as popular.
We found that @unimodules/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 26 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.