Skip to content

Commit c48b45c

Browse files
Fixes storybook (#697)
1 parent 2207a7d commit c48b45c

67 files changed

Lines changed: 549 additions & 423 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.5
1+
3.2.2

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

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

66
gem 'cocoapods', '~> 1.11', '>= 1.11.2'

index.web.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { AppRegistry } from "react-native";
44

55
import App from "./App";
66
import { name as appName } from "./app.json";
7-
import sfBold from "./assets/fonts/SFProText-Bold.ttf";
8-
import sfMedium from "./assets/fonts/SFProText-Medium.ttf";
9-
import sfRegular from "./assets/fonts/SFProText-Regular.ttf";
10-
import sfSemiBold from "./assets/fonts/SFProText-Semibold.ttf";
7+
import sfBold from "./src/assets/fonts/SFProText-Bold.ttf";
8+
import sfMedium from "./src/assets/fonts/SFProText-Medium.ttf";
9+
import sfRegular from "./src/assets/fonts/SFProText-Regular.ttf";
10+
import sfSemiBold from "./src/assets/fonts/SFProText-Semibold.ttf";
1111

1212
if (module.hot) {
1313
module.hot.accept();

src/components/AnimatedImage.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import styled from "styled-components/native";
1313
import { flexbox, space, border, color, layout } from "styled-system";
1414

1515
import ImagePlaceholder from "@assets/images/image-placeholder.svg";
16-
import { Container, Loader } from "@components";
16+
17+
import { Container } from "./Container";
18+
import { Loader } from "./Loader";
1719

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

src/components/BottomTabBar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import Animated, {
1212
import { useSafeAreaInsets } from "react-native-safe-area-context";
1313
import { moderateScale } from "react-native-size-matters";
1414

15-
import { Container, Typography } from "@components";
15+
import { Container } from "./Container";
16+
import { Typography } from "./Typography";
1617

1718
const TabElement = ({
1819
isFocused,

src/components/Button.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Container } from "./Container";
99
import { Loader } from "./Loader";
1010
import { Touchable } from "./Touchable";
1111
import { Typography } from "./Typography";
12+
1213
// eslint-disable-next-line @bigbinary/neeto/no-dangling-constants
1314
export const BUTTON_VARIANTS = Object.freeze({
1415
SOLID: "solid",

src/components/ButtonGroup.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,33 @@ import * as React from "react";
33
import PropTypes from "prop-types";
44
import { moderateScale } from "react-native-size-matters";
55

6-
import { Container, Typography, Touchable } from "@components";
6+
import { Container } from "./Container";
7+
import { Touchable } from "./Touchable";
8+
import { Typography } from "./Typography";
79

810
/**
911
* 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.
1012
* <div class="screenshots">
1113
* <img src="screenshots/buttonGroup/buttonGroup.png" />
1214
* </div>
13-
*
15+
*
1416
* ## Usage
1517
* ```js
1618
* import React, { useState } from 'react';
1719
* import { ButtonGroup } from '@bigbinary/neetoui-rn';
18-
*
20+
*
1921
* export default function Main(){
2022
* const buttonItems = ["Button1", "Button2"];
2123
* const [activeButton, setActiveButton] = useState(buttonItems[0]);
22-
*
24+
*
2325
* return(
2426
* <ButtonGroup
2527
* buttonItems={buttonItems}
2628
* onPress={setActiveButton}
2729
* currentActiveBtn={activeButton}
28-
* />
30+
* />
2931
* );
30-
* }
32+
* }
3133
3234
* ```
3335
*/

src/components/Card.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { getShadowStyles } from "../utils";
1313
const StyledTouchableOpacity = styled(TouchableOpacity)`
1414
${flexbox}
1515
${space}
16-
${border}
17-
${color}
18-
${layout}
16+
${border}
17+
${color}
18+
${layout}
1919
`;
2020

2121
/**

src/components/Carousel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
55
import { moderateScale } from "react-native-size-matters";
66
import CarouselParent, { Pagination } from "react-native-snap-carousel";
77

8-
import { Container } from "@components";
8+
import { Container } from "./Container";
99

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

0 commit comments

Comments
 (0)