Skip to content

Updating custom-mapping.json make the application very slow to load #855

Closed
@dendico

Description

@dendico

🐛 Bug Report

After having updated the custom-mapping.json file, our loading time jumped from few seconds to approximatively 15 ! In our modifications possibly involved, we pointed :

  • Passing json file to multiples js files
  • Adding states variants into Button component mapping (verified)

To Reproduce

  • Install and configure project with UI Kitten
  • Add new states on Buttons component mapping in custom-mapping.json for example
  • Get your timer and compile then launch

Expected behavior

The application compile and load with no more significant delay

UI Kitten and Eva version

Package Version
@eva-design/eva 1.3.0
react-native-ui-kitten 4.3.1

Environment information

System:
    OS: macOS Mojave 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 10.15.3 - /usr/local/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3, 29.0.2
      System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.4 AI-183.5429.30.34.5452501
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions