Giter Club home page Giter Club logo

Comments (3)

natew avatar natew commented on August 23, 2024

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.

miyamotodev123 avatar miyamotodev123 commented on August 23, 2024

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.

natew avatar natew commented on August 23, 2024

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 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.