Giter Club home page Giter Club logo

centroui's People

Contributors

hggeorgiev avatar kotkata avatar oneturkmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centroui's Issues

Importing CentroUI components causes conflicts

Description

Importing CentroUI components causes errors in the bundle.

Steps to reproduce

  1. Start a new ReactVR project:
    react-vr init WelcomeToVR

  2. Install CentroUI
    npm install centro-ui --save

  3. Import and use an arbitrary component

import { CnContainer } from 'centro-ui';

//...

render( 
 <CnContainer></CnContainer>
)

Error log:
screen shot 2017-07-10 at 8 51 51 pm

bundling failed: ambiguous resolution: module

Hello
Just added to my project, followed steps but get error
error:bundling failed: ambiguous resolution: module ..../.../.../ index.vr.js tries to require react-vr, but there are several files providing this module. You can delete or fix them:
Two references to react-vr one in original and one in centro-ui/none-modules

Expected corresponding JSX closing tag for <CnButton>

The following code snippet, taken from the API docs:

        <CnButton
        name="Add to Cart"
        shape="circle"
        color="blue">
        <CnButton/>

placed in a clean project, results with the following in the console and a black screen:

Bundling `index.vr.js`
  Analysing...(node:75754) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 202): SyntaxError: SyntaxError /Users/hgeorgiev/vr/gavkaTest/WelcomeToVR/index.vr.js: Expected corresponding JSX closing tag for <CnButton> (22:8)

(node:75754) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js

'Styles' is not defined

When importing CnCard, container cannot load (hence, only black screen is seen).

index.vr.js:

import React from 'react';

import {
    CnContainer, CnCard
} from 'centro-ui';

import {
  AppRegistry,
  asset,
  Pano,
  Text,
  View,
} from 'react-vr';

export default class WelcomeToVR extends React.Component {
  render() {
    return (
      <CnContainer>
        <CnCard> // Problem occurs here ...
        </CnCard>
      </CnContainer>
    );
  }
};

Exception details:

> measureLifeCyclePerf@http://localhost:8081/index.vr.bundle?platform=vr&dev=true 11847:12
> _renderValidatedComponentWithoutOwnerOrContext/renderedElement<@http://localhost:8081/index.vr.bundle?platform=vr&dev=true 12387:16
> render@http://localhost:8081/index.vr.bundle?platform=vr&dev=true 46096:19
-----
styles is not defined

List does not use ListItem

ListItem is not used for List/List View. Isn't ListItem supposed to be used as per specification when data is repeated?

Alignment in List does not work

Alignment is used only as a state setter in List, but not actually used in the component.

I propose we use vertical and horizontal as possible properties for alignment:

Prop Type Description Required Default
data Array Data to be displayed as a list false []
alignment string Whether the list to be vertical or horizontal false 'vertical'
visibleRows integer Number of rows visible in the list false 5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.