hggeorgiev / centroui Goto Github PK
View Code? Open in Web Editor NEWCentroUI is a library for building user interfaces for WebVR
Home Page: http://centroui.com/
License: Apache License 2.0
CentroUI is a library for building user interfaces for WebVR
Home Page: http://centroui.com/
License: Apache License 2.0
Border attributes are not changing anything in the button. Most likely because getBorderStyles
is only defined but not used in the class.
The only available setters are for backgroundColor
and hoverColor
.
Description
Importing CentroUI components causes errors in the bundle.
Steps to reproduce
Start a new ReactVR project:
react-vr init WelcomeToVR
Install CentroUI
npm install centro-ui --save
Import and use an arbitrary component
import { CnContainer } from 'centro-ui';
//...
render(
<CnContainer></CnContainer>
)
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
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
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
ListItem
is not used for List/List View
. Isn't ListItem
supposed to be used as per specification when data is repeated?
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 |
All components accept bg
for background color, but only TextInput
uses backgroundColor
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.