title: json value '2' of type nsnumber cannot be converted to nsstring
body: <p>I am working on a imageSlider using Carousel imported from library: "react-native-banner-carousel"</p>
  
  <p>I am trying to fetch the images which are stored locally inside a folder components. I am creating an array if images and then trying to render them through Carousel.</p>
  
  <p>I am certainly getting an error like: "json value '2' of type nsnumber cannot be converted to nsstring"</p>
  
  <p>ImageSlider code: </p>
  
  <pre><code>const BannerWidth = Dimensions.get('window').width;
  const BannerHeight = 260;
  
  const images = [
      require("./abc.jpg"),
      require("./xyz.jpg")
  ];
  
  export default class ImageSlider extends React.Component {
      renderPage(image, index) {
          return (
              &lt;View key={index}&gt;
                  &lt;Image style={{ width: BannerWidth, height: BannerHeight }} source={{uri:image}} /&gt; 
              &lt;/View&gt;
          ); 
      }
  
  render() {
      return (
          &lt;View style={styles.container}&gt;
              &lt;Carousel
                  autoplay
                  autoplayTimeout={5000}
                  loop
                  index={0}
                  pageSize={BannerWidth}
              &gt;
                  {images.map((image, index) =&gt; this.renderPage(image, index))}
              &lt;/Carousel&gt;
          &lt;/View&gt;
      );
  }
  }
  
      const styles = StyleSheet.create({
          container: {
              flex: 1,
              backgroundColor: '#fff',
              justifyContent: 'center'
          },
      });
  </code></pre>
  
  <p>As a result I should be able to render all the images displayed inside the images array. But I am getting this error.
  Where am I getting wrong here?</p>