Results 1 to 2 of 2

Thread: Generate sencha package and multi package loader questions

  1. #1
    Sencha Premium User
    Join Date
    Feb 2017

    Default Generate sencha package and multi package loader questions

    I'm able to create a ExtReact new project and i'm curious to know that do we have a command to generate new package under ~/ext-react/packages and use it in ~/src folder?

    Could i apply Multi Package as demo from for ExtReact app?


  2. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015


    The ext-react/packages directory is only for Ext JS packages. In most cases, the only type of Ext JS package you'll use with ExtReact is a theme package. The ExtReact yeoman generator creates a theme package and puts it in ext-react/packages when it creates a new application. If for some reason you want to create an additional theme package, you can follow the instructions here:

    You can also add Ext JS code packages (code packages define custom components) to ext-react/packages, but generally this would only be done by teams that have previously developed their own Ext JS modern components and want to reuse them. React developers new to ExtReact should develop composite components the React way, by extending React.Component.

    Once a package is added to ext-react/packages, it is automatically included in the build and any components included therein can be imported from "@extjs/ext-react" via the capitalized version of their xtype. For example, given a component whose xtype is "foobar", you can import it via:

    import { FooBar } from '@extjs/ext-react'
    Or you can use reactor's reactify function:

    import { reactify } from '@extjs/reactor'
    const FooBar = reactify('foobar') // reactify by xtype

Similar Threads

  1. Replies: 0
    Last Post: 20 Aug 2015, 12:32 AM
  2. Error: The package command has moved to 'sencha app package'
    By Luis Miguel in forum Sencha Architect 2.x: Help & Discussions
    Replies: 4
    Last Post: 6 Feb 2013, 2:05 PM
  3. [FIXED] CMD sencha package generate - creates duplicate key entires
    By pentool in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 29 Oct 2012, 11:04 AM
  4. Can't package Sencha Touch app as a local android package
    By edwin032602 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 27 Jul 2012, 2:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts