Giter Site home page Giter Site logo

Comments (7)

youdini avatar youdini commented on May 22, 2024 3

Hello, I have the same Error
I am currently developing a mobile app, in mobile it is totally fine but when i test it in my browser, whenever I open the actionsheet it always show this error

image

This is the code:

import { StyleSheet } from "react-native";
import { View } from "react-native-ui-lib";
import React from "react";
import { SheetManager } from "react-native-actions-sheet";

import { colors } from "../../constants/theme";
import DrawerButton from "./drawerButton";
import { statusbar } from "../../constants/device";

const DrawerContent = () => {
  return (
    <View flex-1 centerH backgroundColor={colors.dark} style={styles.container}>
      <DrawerButton
        label={"Setting"}
        icon={"gear"}
        onPress={() => SheetManager.show("settingSheet")}
      />
      <DrawerButton
        label={"About Us"}
        icon={"heart"}
        onPress={() => SheetManager.show("aboutSheet")}
      />
      <DrawerButton
        label={"Help"}
        icon={"question"}
        onPress={() => SheetManager.show("helpSheet")}
      />
      <DrawerButton
        label={"Sign Out"}
        icon={"undo"}
        iconSize={27}
        style={styles.signout}
        onPress={() => SheetManager.show("signoutSheet")}
      />
    </View>
  );
};

export default DrawerContent;

const styles = StyleSheet.create({
  container: {
    marginTop: statusbar,
  },
  signout: {
    position: "absolute",
    bottom: 20,
  },
});

I currently using this version:
"react-native-actions-sheet": "^0.9.0-alpha.24",

can anyone know how to fix this?

from react-native-actions-sheet.

motto76 avatar motto76 commented on May 22, 2024 1

Hello,

I am a bit confused.

I didn't find any definition of the function: 'setNativeProps' in the whole code ?!

from react-native-actions-sheet.

felix-lambert avatar felix-lambert commented on May 22, 2024

Did we manage to solve this issue?

from react-native-actions-sheet.

ammarahm-ed avatar ammarahm-ed commented on May 22, 2024

I think we need to migrate to setNativeProps_DEPRECATED for this.

from react-native-actions-sheet.

seemX17 avatar seemX17 commented on May 22, 2024

Screen Shot 2024-01-18 at 2 07 15 PM

Any update on this issue?

from react-native-actions-sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.