Comments (3)
Sorry, the docs are out of date. I'm going to work on updating them soon. It's been moved into Grid. Grid.Container
On Apr 18, 2015, at 2:23 PM, Ken Miyamoto [email protected] wrote:
I'm trying to render a container component by importing it through the reapp-kit but when I try to render there is a Uncaught TypeError: Cannot read property 'toUpperCase' of undefined. I looked through the reapp-ui code and it lists Container as an available component so not too sure why it's not working with reapp-kit. Is there any way to use the Container component and the grid system with reapp?
my code:
import {
React,
View,
Button,
Container
} from 'reapp-kit';export default class extends React.Component {
render() {
return (
<View
{...this.props}
title="Container"><Container> <Button>some button</Button> </Container> </View> );
}
}
—
Reply to this email directly or view it on GitHub.
from reapp-kit.
Ok thanks! The Grid.Container works now, I have two buttons in a container but they aren't spread out evenly. I'm excited for the updated docs but in the meantime I'll just use custom styles with flexbox on some divs to spread elements out the way I want. Let me know if I can help you out with the docs in any way. We were using React-Native but got interested in Reapp since it works for android too.
from reapp-kit.
Added this to the latest reapp-ui, if you reinstall reapp-kit just plain Container should work as well.
from reapp-kit.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reapp-kit.