import React, { Component } from 'react';
import {
    AppRegistry,
  StyleSheet,
  Text,
  View,
  TouchableHighlight
} from 'react-native';
import Button from '@remobile/react-native-simple-button';
import ImagePicker from '@remobile/react-native-image-picker';
import Dialogs from '@remobile/react-native-dialogs';
class cordovaReactImagePicker extends Component{
    onOpen() {
        var options = {maximumImagesCount: 10, width: 400};
        ImagePicker.getPictures(options, function(results) {
            var msg = '';
            for (var i = 0; i < results.length; i++) {
                msg += 'Image URI: ' + results[i] + '\n';
            }
            Dialogs.alert(msg);
        }, function (error) {
            Dialogs.alert('Error: ' + error);
        });
    }
    render() {
        return (
            <View style={styles.container}>
                <Button onPress={this.onOpen}>Photo</Button>
            </View>
        );
    }
};
var styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: 'transparent',
    },
});
AppRegistry.registerComponent('cordovaReactImagePicker', () => cordovaReactImagePicker);
I keep getting error on "seems you are trying to access 'Reactnative.createClass' from the 'react-native' package. Can somebody guide me how should I do it from my understanding is it because the react native sdk syntax code has changed thats why it cannot understand the old code syntax? any help will be greatly appreciate
 
     
    