Stone.js API
    Preparing search index...

    Define a native Stone.js application.

    The imperative counterpart of @UseReactNative(), and deliberately the same signature as the web renderer's defineStoneReactApp: an application moving to a phone changes which function it calls and nothing else.

    The entry screen, or the configuration.

    The configuration, or the blueprints.

    The blueprints.

    A fully merged Stone blueprint.

    • Define a native Stone.js application whose entry screen is a factory page.

      Type Parameters

      Parameters

      • module: FactoryPage<U>

        A factory function for the entry screen.

      • Optionaloptions: Partial<UseReactAppConfig>

        Optional application-level configuration.

      • Optionalblueprints: (StoneBlueprint<any, any> & Record<string, any>)[]

        Additional blueprints to merge, typically the adapter's.

      Returns StoneBlueprint<U>

      A fully merged Stone blueprint.

    • Define a native Stone.js application whose entry screen is a class page.

      Type Parameters

      Parameters

      • module: PageClass<U>

        A class constructor for the entry screen.

      • options: Partial<UseReactAppConfig> & { isClass: boolean }

        Application-level configuration, with isClass.

      • Optionalblueprints: (StoneBlueprint<any, any> & Record<string, any>)[]

        Additional blueprints to merge.

      Returns StoneBlueprint<U>

      A fully merged Stone blueprint.

    • Define a native Stone.js application with no entry screen, routing only.

      Type Parameters

      Parameters

      • Optionaloptions: Partial<UseReactAppConfig>

        Application-level configuration.

      • Optionalblueprints: (StoneBlueprint<any, any> & Record<string, any>)[]

        Additional blueprints to merge.

      Returns StoneBlueprint<U>

      A fully merged Stone blueprint.