Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
3.2.2
Comment thread
abhijithsheheer marked this conversation as resolved.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.5'
ruby '3.2.2'

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
8 changes: 4 additions & 4 deletions index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { AppRegistry } from "react-native";

import App from "./App";
import { name as appName } from "./app.json";
import sfBold from "./assets/fonts/SFProText-Bold.ttf";
import sfMedium from "./assets/fonts/SFProText-Medium.ttf";
import sfRegular from "./assets/fonts/SFProText-Regular.ttf";
import sfSemiBold from "./assets/fonts/SFProText-Semibold.ttf";
import sfBold from "./src/assets/fonts/SFProText-Bold.ttf";
import sfMedium from "./src/assets/fonts/SFProText-Medium.ttf";
import sfRegular from "./src/assets/fonts/SFProText-Regular.ttf";
import sfSemiBold from "./src/assets/fonts/SFProText-Semibold.ttf";

if (module.hot) {
module.hot.accept();
Expand Down
4 changes: 3 additions & 1 deletion src/components/AnimatedImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import styled from "styled-components/native";
import { flexbox, space, border, color, layout } from "styled-system";

import ImagePlaceholder from "@assets/images/image-placeholder.svg";
import { Container, Loader } from "@components";

import { Container } from "./Container";
Comment thread
abhijithsheheer marked this conversation as resolved.
import { Loader } from "./Loader";

import { theme } from "../theme";

Expand Down
3 changes: 2 additions & 1 deletion src/components/BottomTabBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import Animated, {
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { moderateScale } from "react-native-size-matters";

import { Container, Typography } from "@components";
import { Container } from "./Container";
import { Typography } from "./Typography";

const TabElement = ({
isFocused,
Expand Down
1 change: 1 addition & 0 deletions src/components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Container } from "./Container";
import { Loader } from "./Loader";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

// eslint-disable-next-line @bigbinary/neeto/no-dangling-constants
export const BUTTON_VARIANTS = Object.freeze({
SOLID: "solid",
Expand Down
14 changes: 8 additions & 6 deletions src/components/ButtonGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ import * as React from "react";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Container, Typography, Touchable } from "@components";
import { Container } from "./Container";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

/**
* ButtonGroup is a linear set of segments, each of which function as a button that can display a different view/or perform a different action.
* <div class="screenshots">
* <img src="screenshots/buttonGroup/buttonGroup.png" />
* </div>
*
*
* ## Usage
* ```js
* import React, { useState } from 'react';
* import { ButtonGroup } from '@bigbinary/neetoui-rn';
*
*
* export default function Main(){
* const buttonItems = ["Button1", "Button2"];
* const [activeButton, setActiveButton] = useState(buttonItems[0]);
*
*
* return(
* <ButtonGroup
* buttonItems={buttonItems}
* onPress={setActiveButton}
* currentActiveBtn={activeButton}
* />
* />
* );
* }
* }

* ```
*/
Expand Down
6 changes: 3 additions & 3 deletions src/components/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { getShadowStyles } from "../utils";
const StyledTouchableOpacity = styled(TouchableOpacity)`
${flexbox}
${space}
${border}
${color}
${layout}
${border}
${color}
${layout}
`;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/components/Carousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";
import CarouselParent, { Pagination } from "react-native-snap-carousel";

import { Container } from "@components";
import { Container } from "./Container";

const { width } = Dimensions.get("screen");

Expand Down
3 changes: 2 additions & 1 deletion src/components/ChatInput/Badge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React from "react";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Container, Typography } from "@components";
import { Container } from "../Container";
import { Typography } from "../Typography";

export const Badge = ({ text, isNoteOptionSelected }) => (
<Container
Expand Down
4 changes: 2 additions & 2 deletions src/components/ChatInput/EmailFields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import PropTypes from "prop-types";
import Animated, { FadeInDown, FadeInUp } from "react-native-reanimated";
import { moderateScale } from "react-native-size-matters";

import { InputEmailChip } from "@components";

import { Badge } from "./Badge";

import { InputEmailChip } from "../InputEmailChip";

export const EmailFields = ({
shouldShowEmailFields,
setIsEmailFieldsVisible,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatInput/IconButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";
import { ThemeContext } from "styled-components/native";

import { Touchable } from "@components";
import { Touchable } from "../Touchable";

export const IconButton = ({ Icon, iconProps, ...rest }) => {
const theme = useContext(ThemeContext);
Expand Down
14 changes: 6 additions & 8 deletions src/components/ChatInput/MentionsInputWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import { MentionInput } from "react-native-controlled-mentions";
import { moderateScale } from "react-native-size-matters";
import { ThemeContext } from "styled-components/native";

import {
Touchable,
Avatar,
Typography,
Card,
Divider,
Container,
} from "@components";
import { Avatar } from "../Avatar";
import { Card } from "../Card";
import { Container } from "../Container";
import { Divider } from "../Divider";
import { Touchable } from "../Touchable";
import { Typography } from "../Typography";

export const MentionsInputWrapper = forwardRef(
({ suggestions, shouldShowSuggestions, ...rest }, ref) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/CheckBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ThemeContext } from "styled-components/native";

import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

/**
*
* <div class="screenshots">
Expand Down
4 changes: 3 additions & 1 deletion src/components/Chip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { Close } from "@bigbinary/neeto-icons-rn";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Typography, Touchable, Container } from "@components";
import { Container } from "./Container";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

const variantStyleObj = {
solid: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/FAB.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import propTypes from "@styled-system/prop-types";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Touchable } from "@components";
import { theme } from "@theme";

import { Touchable } from "./Touchable";

/**
* FAB component is a floating action button which represents the primary action in an application and is built on top of styled-system.
*
Expand Down
3 changes: 2 additions & 1 deletion src/components/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import propTypes from "@styled-system/prop-types";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Typography, Container } from "@components";
import { Container } from "./Container";
import { Typography } from "./Typography";

/**
* ListItems are components that displays a label with different values like string, toggle, button etc.
Expand Down
14 changes: 6 additions & 8 deletions src/components/NotificationPreferenceList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import React from "react";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import {
Container,
Typography,
Divider,
ToggleSwitch,
Loader,
} from "@components";
import { Container } from "./Container";
import { Divider } from "./Divider";
import { Loader } from "./Loader";
import { ToggleSwitch } from "./ToggleSwitch";
import { Typography } from "./Typography";

/**
*
Expand All @@ -26,7 +24,7 @@ import {
*
* export default function Main() {
* const [data, setData] = useState([]);
*
*
* const handleSwitch = (item, index) => {
* setData(prevData => {
* const newData = [...prevData];
Expand Down
5 changes: 4 additions & 1 deletion src/components/OnBoarding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import PropTypes from "prop-types";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { moderateScale } from "react-native-size-matters";

import { Button, Carousel, Container, Typography } from "@components";
import { Button } from "./Button";
import { Carousel } from "./Carousel";
import { Container } from "./Container";
import { Typography } from "./Typography";

/**
*
Expand Down
3 changes: 2 additions & 1 deletion src/components/OtpInputs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
color,
} from "styled-system";

import { Container, Typography } from "@components";
import { Container } from "./Container";
import { Typography } from "./Typography";

import { theme } from "../theme";

Expand Down
2 changes: 1 addition & 1 deletion src/components/ParentView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "react-native-safe-area-context";
import { ThemeContext } from "styled-components/native";

import { Container } from "@components";
import { Container } from "./Container";

import { useKeyboard } from "../hooks/useKeyboard";

Expand Down
3 changes: 2 additions & 1 deletion src/components/Popover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { moderateScale } from "react-native-size-matters";
import styled from "styled-components/native";
import { flexbox, space, border, color, layout } from "styled-system";

import { Typography, Divider } from "@components";
import { Divider } from "./Divider";
import { Typography } from "./Typography";

export const TouchableOpacity = styled.TouchableOpacity`
${space}
Expand Down
3 changes: 2 additions & 1 deletion src/components/SegmentedTopBar/Tab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { View, StyleSheet } from "react-native";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Typography, Touchable } from "@components";
import { Touchable } from "../Touchable";
import { Typography } from "../Typography";

export const Tab = forwardRef(
({ label, value, navigation, flex, count }, ref) => {
Expand Down
6 changes: 5 additions & 1 deletion src/components/SocialButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import { ThemeContext } from "styled-components/native";

import AppleLogo from "@assets/icons/apple-logo.svg";
import GoogleLogo from "@assets/icons/google-logo.svg";
import { Container, Typography, Touchable, Loader } from "@components";

import { Container } from "./Container";
import { Loader } from "./Loader";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

/**
*
Expand Down
7 changes: 5 additions & 2 deletions src/components/Toast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ import ErrorIcon from "@assets/icons/error.svg";
import InfoIcon from "@assets/icons/info.svg";
import SuccessIcon from "@assets/icons/success.svg";
import WarningIcon from "@assets/icons/warning.svg";
// eslint-disable-next-line import/no-cycle
import { Container, Typography, Card, Touchable } from "@components";
import { defaultToasterConfig } from "@config";

import { Card } from "./Card";
import { Container } from "./Container";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

const ToastComponent = ({ type, text1, text2, hide, isVisible }) => {
const theme = useContext(ThemeContext);
const { width } = useWindowDimensions();
Expand Down
5 changes: 4 additions & 1 deletion src/components/TopBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { ScrollView, StyleSheet } from "react-native";
import PropTypes from "prop-types";
import { moderateScale } from "react-native-size-matters";

import { Container, Touchable, Typography } from "@components";
import { theme } from "@theme";

import { Container } from "./Container";
import { Touchable } from "./Touchable";
import { Typography } from "./Typography";

/**
*
* Buttons are touchable elements used to interact with the screen and to trigger an action.
Expand Down
4 changes: 2 additions & 2 deletions storybook/stories/Accordion.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ A component used to display an expandable list item.
> </Container>
> );
> }
`
}
`,
},
};
export default AccordionStories;

Expand Down
5 changes: 3 additions & 2 deletions storybook/stories/Alert.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ By default, the only button will be an 'OK' button.
> }}
> />
> );
}
`}
}
`,
},
};
export default AlertStories;

Expand Down
Loading