Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@rebox/ios
Advanced tools
Set of helpers to deal with React Native applications on iOS.
$ yarn add @rebox/ios
brew install cocoapods
type TLinkIosDependencyOptions = {
projectPath: string,
dependencyName: string
}
const linkIosDependency: (options: TLinkIosDependencyOptions) => Promise<void>
type TBuildIosAppDebugOptions = {
projectPath: string,
iOSVersion: string,
platformName: string,
appName: string,
appId: string
}
const buildIosAppDebug: (options: TBuildIosAppDebugOptions) => Promise<void>
type TInstallIosAppOptions = {
appPath: string,
deviceId?: string // booted one by default
}
const installIosApp: (options: TInstallIosAppOptions) => Promise<void>
type TUninstallIosAppOptions = {
appId: string,
deviceId?: string // booted one by default
}
const uninstallIosApp: (options: TUninstallIosAppOptions) => Promise<void>
type TRunSimulatorOptions = {
iPhoneVersion: number,
iOSVersion: string,
isHeadless?: boolean // false by default
}
const runIosSimulator: (options: TRunSimulatorOptions) => Promise<() => void>
type TLaunchIosAppOptions = {
appId: string,
deviceId?: string // booted one by default
}
const launchIosApp: (options: TLaunchIosAppOptions) => Promise<void>
type TRunIosOptions = {
appName: string,
appId: string,
entryPointPath: string,
iOSVersion: string, // for example `13.2`
iPhoneVersion: number, // for example `8`
fontsDir?: string, // directory with `.ttf` or `.otf` files
dependencyNames?: string[], // installed NPM package names
isHeadless?: boolean, // false by default
logMessage?: (msg: string) => void
}
const runIosApp: (options: TRunIosOptions) => Promise<() => void>
// App.tsx
import { FC } from 'react'
import { Svg, Circle } from 'react-native-svg'
export const App: FC<{}> = () => (
<Svg height={100} width={100} viewBox="0 0 100 100">
<Circle
cx="50"
cy="50"
r="45"
stroke="blue"
strokeWidth="2.5"
fill="green"
/>
</Svg>
)
// run.ts
import { runAndroidApp } from '@rebox/android'
await runAndroidApp({
appName: 'Test',
appId: 'org.nextools.test',
entryPointPath: './App.tsx',
dependencyNames: ['react-native-svg'],
isHeadless: false,
logMessage: console.log
})
FAQs
Set of helpers to deal with React Native applications on iOS
We found that @rebox/ios demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.