react-native-popable icon indicating copy to clipboard operation
react-native-popable copied to clipboard

CaretPosition left or right positioning incorrect

Open elliotching opened this issue 2 years ago • 0 comments

v0.4.3

When I put caretPosition={"right"} , the caret does not point to correct position

Screenshot 2021-10-11 at 10 50 41 AM

<Popable
      // style={{ width: 300, flex: 1, display: "flex" }}
      backgroundColor={palette.aia_light_gold}
      caretPosition={"right"}
      content={
        <View
          style={{
            // flex: 1,
            padding: 10,
            alignItems: "center",
            justifyContent: "center",
          }}
        >
          <Text style={{ color: "black" }}>
            Example tooltip text
          </Text>
        </View>
      }
    >
      <Image
        style={{
          resizeMode: "contain",
          height: typography.fontSize.small,
          width: typography.fontSize.small,
        }}
        source={require("../../assets/icon_info.png")}
      />
    </Popable>

elliotching avatar Oct 11 '21 02:10 elliotching