reapp / reapp-ui

Amazing cross platform UI's with React and JavaScript
https://reapp.io
MIT License
257 stars 47 forks source link

warning deprecated #87

Closed jackyon closed 8 years ago

jackyon commented 8 years ago

hi, I just trying to use the reapp-ui with react (0.14.2)

but I got the errors: Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead. Warning: Button.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.

here is my codes:

import React, { Component } from 'react'
import iOSTheme from 'reapp-ui/themes/ios/theme'
import Theme from 'reapp-ui/helpers/Theme';
import Button from 'reapp-ui/components/Button';

class Home extends Component {
    render() {
        return (
            <div>
                <Theme {...iOSTheme}>
                    <Button>test</Button>
                  </Theme>
            </div>
        )
    }
}

export default Home

plz advise, thx

veeramarni commented 8 years ago

+1

ryd0rz commented 8 years ago

Fixed with: https://github.com/reapp/reapp-ui/commit/0b9ccc159c4cd05f7aed015b7efeba7a9b09ceff