creativetimofficial / ct-soft-ui-pro-react-native

Start your development with a Design System for React-Native inspired by Soft UI Design System.
https://www.creative-tim.com/product/soft-ui-pro-react-native
15 stars 3 forks source link

React native project fails to compile on a new project #3

Closed sergioisidoro closed 2 years ago

sergioisidoro commented 2 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

On a clean download and install, expo start should compile and start.

Current Behavior

TypeError: Object(...) is not a function

on

const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView');

It seems the issue has been reported here. I wonder if pinning masked view to the previous version would help. https://github.com/react-native-masked-view/masked-view/issues/130

It is also possible that this is due to this project using the old version of the package, as this comment mentions: https://github.com/react-native-masked-view/masked-view/issues/142#issuecomment-970501421

You are probably using the old package name @react-native-community/masked-view instead of @react-native-masked-view/masked-view

Failure Information (for bugs)

Module../node_modules/@react-native-community/masked-view/js/MaskedView.js
node_modules/@react-native-community/masked-view/js/MaskedView.js:14
  11 | import React from 'react';
  12 | import { View, StyleSheet, requireNativeComponent } from 'react-native';
  13 | 
> 14 | const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView');
  15 | 
  16 | import { type MaskedViewProps } from './MaskedViewTypes';
  17 | 

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Clean all node modules
  2. yarn install
  3. expo start

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

github-actions[bot] commented 2 years ago

@sergioisidoro this issue was automatically closed because it did not follow our rules:


IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/soft-ui-pro-react-native

**If your issue was not created using the app above, it will be closed immediately.**

Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
šŸ‘‰  https://www.creative-tim.com/bundles
šŸ‘‰  https://www.creative-tim.com