shoutem/ui

Module not found: Can't resolve './ImageGallery'

lsbyerley opened this issue · 1 comments

Greetings, fairly new to react-native and this library. I have created a react-native project with expo and installed shoutem ui as a dependency to check it out. When running the project, i get this compile error pointing to the ImageGallery component. I have ran react-native link, not sure what else I need to do or why I'm seeing this error?

Module not found: Can't resolve './ImageGallery' in '/node_modules/@shoutem/ui/components/ImageGallery'

App.js

import React from 'react';
import { View } from 'react-native';
import { Title } from '@shoutem/ui';

export default function App() {
  return (
    <View style={styles.container}>
      <Title>Hello Title!</Title>
    </View>
  );
}

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "link": "react-native link"
  },
  "dependencies": {
    "@shoutem/ui": "4.4.8",
    "expo": "42.0.1",
    "expo-status-bar": "1.0.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-linear-gradient": "2.5.6",
    "react-native-photo-view": "github:shoutem/react-native-photo-view#0ffa1481f6b6cb8663cb291b7db1d6644440584d",
    "react-native-svg": "9.13.0",
    "react-native-vector-icons": "6.6.0",
    "react-native-web": "0.13.12",
    "react-native-webview": "11.0.0"
  },
  "devDependencies": {
    "@babel/core": "7.9.0"
  },
}

Just came across this link to an example when using expo https://github.com/shoutem/ui/tree/develop/examples/create-react-native-app

I guess there isn't a seamless integration without ejecting expo