Skip to content

Commit 2a80b76

Browse files
committed
feat: new expo example and doc update
1 parent 400ce01 commit 2a80b76

File tree

83 files changed

+7387
-29816
lines changed

Some content is hidden

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

83 files changed

+7387
-29816
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,17 @@ should work of the example project.
9696

9797
## Customization (Optionals)
9898

99-
| Property | Type | Default | Description |
100-
|------------------| :-------: | :----------------: | ------------------------------------------------------- |
101-
| style | ViewStyle | default | set or override the style object for the main container |
102-
| initialIndex | number | 0 | set the initial index |
103-
| activeTextColor | string | #000 | change the active tab's text color |
104-
| activeTabColor | string | #FFF | change the active tab's color |
105-
| gap | number | 0 | set extra spacing for animation horizontal value |
106-
| tabStyle | ViewStyle | default | set or override the style object for the tab |
107-
| selectedTabStyle | ViewStyle | default | set or override the style object for the selected tab |
108-
| textStyle | TextStyle | default | set or override the style object for tab's text |
99+
| Property | Type | Default | Description |
100+
|------------------|:---------:|:-------:|------------------------------------------------------------|
101+
| style | ViewStyle | default | set or override the style object for the main container |
102+
| initialIndex | number | 0 | set the initial index |
103+
| activeTextColor | string | #000 | change the active tab's text color |
104+
| activeTabColor | string | #FFF | change the active tab's color |
105+
| gap | number | 0 | set extra spacing for animation horizontal value |
106+
| tabStyle | ViewStyle | default | set or override the style object for the tab |
107+
| selectedTabStyle | ViewStyle | default | set or override the style object for the selected tab |
108+
| activeTextStyle | TextStyle | default | set or override the style object for the active tab's text |
109+
| textStyle | TextStyle | default | set or override the style object for tab's text |
109110

110111
## Future Plans
111112

example/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/.bundle/config

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/.eslintrc.js

Lines changed: 0 additions & 122 deletions
This file was deleted.

example/.gitignore

Lines changed: 34 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,36 @@
1-
# OSX
2-
#
3-
.DS_Store
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
42

5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
24-
# Android/IntelliJ
25-
#
26-
build/
27-
.idea
28-
.gradle
29-
local.properties
30-
*.iml
31-
*.hprof
32-
33-
# node.js
34-
#
3+
# dependencies
354
node_modules/
36-
npm-debug.log
37-
yarn-error.log
38-
39-
# BUCK
40-
buck-out/
41-
\.buckd/
42-
*.keystore
43-
!debug.keystore
44-
45-
# fastlane
46-
#
47-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48-
# screenshots whenever they are needed.
49-
# For more information about the recommended setup visit:
50-
# https://docs.fastlane.tools/best-practices/source-control/
51-
52-
*/fastlane/report.xml
53-
*/fastlane/Preview.html
54-
*/fastlane/screenshots
55-
56-
# Bundle artifact
57-
*.jsbundle
58-
59-
# Ruby / CocoaPods
60-
/ios/Pods/
61-
/vendor/bundle/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
14+
*.jks
15+
*.p8
16+
*.p12
17+
*.key
18+
*.mobileprovision
19+
20+
# Metro
21+
.metro-health-check*
22+
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
27+
28+
# macOS
29+
.DS_Store
30+
*.pem
31+
32+
# local env files
33+
.env*.local
34+
35+
# typescript
36+
*.tsbuildinfo

example/.prettierrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

example/.ruby-version

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/.watchmanconfig

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

example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { View, Image, Dimensions, Text } from "react-native";
3-
import SegmentedControl from "react-native-segmented-control-2";
3+
import SegmentedControl from "./lib/SegmentedControl";
44

55
const { width: ScreenWidth } = Dimensions.get("screen");
66

example/Gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)