Skip to content

Commit 5bcf67f

Browse files
committed
Lib is completed. Example is completed. README is coming
0 parents  commit 5bcf67f

File tree

78 files changed

+9872
-0
lines changed

Some content is hidden

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

78 files changed

+9872
-0
lines changed

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: "babel-eslint",
3+
extends: "airbnb",
4+
plugins: ["react", "react-native"],
5+
env: {
6+
jest: true,
7+
"react-native/react-native": true
8+
},
9+
rules: {
10+
// allow js file extension
11+
"react/jsx-filename-extension": [
12+
"error",
13+
{
14+
extensions: [".js", ".jsx"]
15+
}
16+
],
17+
// for post defining style object in react-native
18+
"no-use-before-define": ["error", { variables: false }],
19+
// react-native rules
20+
"react-native/no-unused-styles": 2,
21+
"react-native/split-platform-components": 2,
22+
"react-native/no-inline-styles": 2,
23+
"react-native/no-raw-text": 2
24+
}
25+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
package-lock.json
6+
7+
node_modules
8+
9+
# Xcode
10+
#
11+
build/
12+
*.pbxuser
13+
!default.pbxuser
14+
*.mode1v3
15+
!default.mode1v3
16+
*.mode2v3
17+
!default.mode2v3
18+
*.perspectivev3
19+
!default.perspectivev3
20+
xcuserdata
21+
*.xccheckout
22+
*.moved-aside
23+
DerivedData
24+
*.hmap
25+
*.ipa
26+
*.xcuserstate
27+
project.xcworkspace
28+
29+
# Android/IntelliJ
30+
#
31+
build/
32+
.idea
33+
.gradle
34+
local.properties
35+
*.iml
36+
37+
# node.js
38+
#
39+
node_modules/
40+
npm-debug.log
41+
yarn-error.log
42+
43+
# BUCK
44+
buck-out/
45+
\.buckd/
46+
*.keystore
47+
48+
# fastlane
49+
#
50+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
51+
# screenshots whenever they are needed.
52+
# For more information about the recommended setup visit:
53+
# https://docs.fastlane.tools/best-practices/source-control/
54+
55+
*/fastlane/report.xml
56+
*/fastlane/Preview.html
57+
*/fastlane/screenshots
58+
59+
# Bundle artifact
60+
*.jsbundle

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Node Modules
2+
**/node_modules
3+
node_modules
4+
# Example
5+
example
6+
# Assets
7+
Assets
8+
assets

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Change Log
2+
3+
## [Unreleased](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/HEAD)
4+
5+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.2.0...HEAD)
6+
7+
**Implemented enhancements:**
8+
9+
- Extend length of Textfield to full length of search box...? [\#4](https://github.com/WrathChaos/react-native-dynamic-search-bar/issues/4)
10+
11+
**Merged pull requests:**
12+
13+
- Bump lodash from 4.17.11 to 4.17.14 in /example [\#5](https://github.com/WrathChaos/react-native-dynamic-search-bar/pull/5) ([dependabot[bot]](https://github.com/apps/dependabot))
14+
15+
## [0.2.0](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.2.0) (2019-07-09)
16+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.1.11...0.2.0)
17+
18+
**Merged pull requests:**
19+
20+
- Bump handlebars from 4.1.1 to 4.1.2 in /example [\#3](https://github.com/WrathChaos/react-native-dynamic-search-bar/pull/3) ([dependabot[bot]](https://github.com/apps/dependabot))
21+
- Bump js-yaml from 3.13.0 to 3.13.1 in /example [\#2](https://github.com/WrathChaos/react-native-dynamic-search-bar/pull/2) ([dependabot[bot]](https://github.com/apps/dependabot))
22+
23+
## [0.1.11](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.1.11) (2019-04-20)
24+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.1.1...0.1.11)
25+
26+
**Closed issues:**
27+
28+
- on Android, there is no animation [\#1](https://github.com/WrathChaos/react-native-dynamic-search-bar/issues/1)
29+
30+
## [0.1.1](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.1.1) (2019-04-18)
31+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.0.13...0.1.1)
32+
33+
## [0.0.13](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.0.13) (2019-04-02)
34+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.0.12...0.0.13)
35+
36+
## [0.0.12](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.0.12) (2019-04-02)
37+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.0.11...0.0.12)
38+
39+
## [0.0.11](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.0.11) (2019-04-02)
40+
[Full Changelog](https://github.com/WrathChaos/react-native-dynamic-search-bar/compare/0.0.1...0.0.11)
41+
42+
## [0.0.1](https://github.com/WrathChaos/react-native-dynamic-search-bar/tree/0.0.1) (2019-03-31)
43+
44+
45+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

README.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<img alt="React Navigation Helpers" src="https://github.com/WrathChaos/react-navigation-helpers/blob/master/assets/logo.png" width="1050"/>
2+
3+
Helpers for React Navigation.
4+
5+
[![npm version](https://img.shields.io/npm/v/react-navigation-helpers.svg)](https://www.npmjs.com/package/react-navigation-helpers)
6+
[![npm](https://img.shields.io/npm/dt/react-navigation-helpers.svg)](https://www.npmjs.com/package/react-navigation-helpers)
7+
![expo-compatible](https://img.shields.io/badge/Expo-compatible-9cf.svg)
8+
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg)
9+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
10+
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
11+
12+
## Installation
13+
14+
Add the dependency:
15+
16+
### React Native:
17+
18+
```ruby
19+
npm i react-navigation-helpers
20+
```
21+
22+
## Peer Dependencies
23+
24+
###### IMPORTANT! You need install them.
25+
26+
```
27+
"react": ">= 16.x.x",
28+
"react-navigation": ">= 3.x.x"
29+
```
30+
31+
## Usage
32+
33+
### Global Level Navigator
34+
35+
<b>Firstly</b> set the global level navigator reference
36+
37+
```js
38+
import NavigationService from "react-navigation-helpers";
39+
<MainNavigator
40+
ref={navigatorRef =>
41+
NavigationService.setGlobalLevelNavigator(navigatorRef)
42+
}
43+
/>
44+
```
45+
46+
### NavigationService Usage
47+
48+
#### Navigate Example
49+
50+
```js
51+
NavigationService.navigate("home")
52+
```
53+
54+
#### Push Example
55+
56+
```js
57+
NavigationService.push("home")
58+
```
59+
60+
#### Pop Example
61+
62+
```js
63+
NavigationService.pop()
64+
```
65+
66+
#### PopToTop Example
67+
68+
```js
69+
NavigationService.popToTop()
70+
```
71+
72+
#### Back Example
73+
74+
```js
75+
NavigationService.back()
76+
```
77+
78+
79+
### Configuration - Props
80+
81+
| Property | Type | Default | Description |
82+
| ----------------------- | :------: | :------: | -------------------------------------- |
83+
| setGlobalLevelNavigator | function | function | set your global level navigator (MUST) |
84+
| navigate | function | function | navigate the selected screen |
85+
| push | function | function | push the selected screen |
86+
| back | function | function | back the previous screen |
87+
| pop | function | function | pop the previous screen |
88+
| popToTop | function | function | pop the top level of the screen |
89+
| reset | function | function | reset the navigator |
90+
91+
92+
### ToDos
93+
94+
- [x] LICENSE
95+
- [ ] Write an article about the lib on Medium
96+
97+
## Author
98+
99+
FreakyCoder, kurayogun@gmail.com
100+
101+
## License
102+
103+
React Navigation Helpers Library is available under the MIT license. See the LICENSE file for more info.

assets/Screenshots/SearchGIF.gif

12.2 MB
Loading

assets/Screenshots/example.png

1.15 MB
Loading

assets/icon.png

2.91 KB
Loading

0 commit comments

Comments
 (0)