Skip to content

installation error! #6

@NAZIMUDHEEN267

Description

@NAZIMUDHEEN267

When i install "react-native-custom-switch" on my android device showing error like this,

2 | import { View, StyleSheet, Text, TouchableWithoutFeedback, Animated, LayoutAnimation, Platform, UIManager } from 'react-native';
3 |

4 | import hexToRgb from './hexToRgb';
| ^
6 | if (Platform.OS === 'android') {
7 | if (UIManager.setLayoutAnimationEnabledExperimental) {
at ModuleResolver.resolveDependency (/home/nachu/Desktop/todo_app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:137:15)
at DependencyGraph.resolveDependency (/home/nachu/Desktop/todo_app/node_modules/metro/src/node-haste/DependencyGraph.js:260:43)

and i rebuilded my app and cleared cache with npm start --reset-cache command, still showing this error

package-version = "^1.0.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions