How to use @expo/next-adapter - 1 common examples

To help you get started, we’ve selected a few @expo/next-adapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo-cli / packages / next-adapter / src / customize / manifest.ts View on Github external
type SelectMethod = (context: { projectRoot: string; force: boolean }) => Promise;
type EnabledMethod = (context: { projectRoot: string; force: boolean }) => Promise;

type CustomizeOption = {
  name: string;
  type: 'custom' | 'required' | 'extra';
  destinationPath: (projectRoot: string) => string;
  templatePath?: string;
  description: string;
  onSelectAsync: SelectMethod;
  onEnabledAsync: EnabledMethod;
};

const generatedTag = `@generated: @expo/next-adapter@${
  require('@expo/next-adapter/package.json').version
}`;

function createJSTag(): string {
  return `// ${generatedTag}`;
}

function createBashTag(): string {
  return `# ${generatedTag}`;
}

async function copyFileAsync(
  from: string,
  to: string,
  force: boolean,
  tag?: string
): Promise {

@expo/next-adapter

Adapter for using Next.js to bundle Expo web projects

MIT
Latest version published 4 months ago

Package Health Score

78 / 100
Full package analysis

Popular @expo/next-adapter functions