Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GeekyAnts/NativeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Supriya Kalghatgi committed Feb 19, 2019
2 parents 4c8a68b + 4a9f968 commit 571ea1e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 26 deletions.
31 changes: 21 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
# Version [2.8.0](https://github.com/GeekyAnts/NativeBase/releases/tag/v2.8.0)
# Version


### General Features

* **lodash:** Upgraded lodash to 4.17.10 to fix vulnerability issue. Commit [dc9ac11](https://github.com/GeekyAnts/NativeBase/commit/dc9ac1131432ba1cac21f900a61f31af848b68ea), closes [#2118](https://github.com/GeekyAnts/NativeBase/issues/2118)
* **Intsallation:** Changed `CRNA` to `Expo` in installation instructions. PR [#2584](https://github.com/GeekyAnts/NativeBase/pull/2584). Commit [149f10a](https://github.com/GeekyAnts/NativeBase/commit/149f10ac0b3ab82e9db795eff4cb59309c18234d)


### Upgraded Features

* **Drawer:** Added back Drawer. PR [#2243](https://github.com/GeekyAnts/NativeBase/pull/2243)
* **Form:** Added `disabled` prop with TextArea. Commit [c3d9d72](https://github.com/GeekyAnts/NativeBase/commit/c3d9d72318f14181a1ecab68c7cd9cd13d14529c)
* **Item:** Added Item Event Handler. PR [#2552](https://github.com/GeekyAnts/NativeBase/pull/2552). Closes [#2525](https://github.com/GeekyAnts/NativeBase/issues/2525). Commit [4fadd8a](https://github.com/GeekyAnts/NativeBase/commit/4fadd8af2928c85ec8de1758537b736bd8c1da6d)
* **Tabs:** Tabs width update. PR [#2572](https://github.com/GeekyAnts/NativeBase/pull/2572). Commit [d425332](https://github.com/GeekyAnts/NativeBase/commit/d42533283febc01f954df504e04aa3331a6214e8), Closes [#2249](https://github.com/GeekyAnts/NativeBase/issues/2249),[#2558](https://github.com/GeekyAnts/NativeBase/issues/2558)
* **TypeScript:**
- Added Button `hasText` to Typescript. PR[#2526](https://github.com/GeekyAnts/NativeBase/pull/2526). Commit [3980c59](https://github.com/GeekyAnts/NativeBase/commit/3980c59caade71b37e859a315ff9acc23ee8f671)
- Added hide() function to Toast typing. PR[#2521](https://github.com/GeekyAnts/NativeBase/pull/2521). Commit [44ccec](https://github.com/GeekyAnts/NativeBase/commit/44ccec8e73fcbec1121dc6ce6b27aadf5e7321a3)
- Added `prerenderingSiblingsNumber` to Tabs. PR [#2531](https://github.com/GeekyAnts/NativeBase/pull/2531). Commit [75f9302](https://github.com/GeekyAnts/NativeBase/commit/75f930214efddf2082740f1fdc71ccd983ec2f12), Closes [#1620](https://github.com/GeekyAnts/NativeBase/issues/1620)
- Updated Type definitions. PR [#2210](https://github.com/GeekyAnts/NativeBase/pull/2210). Commit [1cb2ded](https://github.com/GeekyAnts/NativeBase/commit/1cb2ded17d011c3c6d33d1b1e2b50c9ed27aba66)
* **Theme:**
- iPhoneX feature flag modification from specified theme. PR[#2514](https://github.com/GeekyAnts/NativeBase/pull/2514). Commit [7e53707](https://github.com/GeekyAnts/NativeBase/commit/7e53707323f27a88ab44a00e2b278f5afb4f7202) closes [#2382](https://github.com/GeekyAnts/NativeBase/issues/2382)
- Updated theme variable value for ListItem. PR[#2569](https://github.com/GeekyAnts/NativeBase/pull/2569). Commit [b07d89e](https://github.com/GeekyAnts/NativeBase/commit/b07d89edb123170e37d7ae9b5292b2dc91513a8b) closes [#2513](https://github.com/GeekyAnts/NativeBase/issues/2513)
* **Accordion:** Added Test case for Accordion. PR[#2578](https://github.com/GeekyAnts/NativeBase/pull/2578). Commit [2892d15](https://github.com/GeekyAnts/NativeBase/commit/2892d15426e143e910e652e7a97054c18e6d6b44) closes [#2546](https://github.com/GeekyAnts/NativeBase/issues/2546)
* Removed all .DS_Store files and ignore nonessential files. PR[#1](https://github.com/GeekyAnts/NativeBase/pull/1). Commit [af294d2](https://github.com/GeekyAnts/NativeBase/commit/af294d204f09fb666cc7c2ea928092e230996380)



### Bug Fixes

* **Form:**
- Fixed floatingLabel input label cuts on Android Plus devices. PR [#2149](https://github.com/GeekyAnts/NativeBase/pull/2149), closes [#2117](https://github.com/GeekyAnts/NativeBase/issues/2117)
- Fixed modifying the assertion on the Item component to use displayName prop. PR [#2001](https://github.com/GeekyAnts/NativeBase/pull/2001), closes [#2011](https://github.com/GeekyAnts/NativeBase/issues/2011)
* **Gravatar:** Added missing import `prop-types` package. PR [#2175](https://github.com/GeekyAnts/NativeBase/pull/2175)
* **Header:** Fixed Icon size for Left and Right component of Header. Commit [c232bb6](https://github.com/GeekyAnts/NativeBase/commit/c232bb69c7071c3e194480f83f16bc219e5dd030), closes [#2205](https://github.com/GeekyAnts/NativeBase/issues/2205)
* **ListItem:** Fixed Left component alignment for ListItem avatar when the content in Body is in multiple lines. Commit [007fabb](https://github.com/GeekyAnts/NativeBase/commit/007fabb3a3cd44a44d9553b0b78f40140aabd4bb), closes [#2226](https://github.com/GeekyAnts/NativeBase/issues/2226)
* **ActionSheet:** Fixed NAN issue for height. PR [#2553](https://github.com/GeekyAnts/NativeBase/pull/2553). Commit [13413a0](https://github.com/GeekyAnts/NativeBase/commit/13413a06907a9901900f4b8c61affbc982f7f5ed), Closes [#2545](https://github.com/GeekyAnts/NativeBase/issues/2545)
* **style types refs:** Fixed react native style types refs. PR [#2562](https://github.com/GeekyAnts/NativeBase/pull/2562). Commit [02e6bf7](https://github.com/GeekyAnts/NativeBase/commit/02e6bf70f309320a3757f2335ce35f29141d7ba0), closes [#2123](https://github.com/GeekyAnts/NativeBase/issues/2123)
* **DatePicker:** Date Picker disabled prop fix. PR [#2510](https://github.com/GeekyAnts/NativeBase/pull/2510). Commit [441ab34](https://github.com/GeekyAnts/NativeBase/commit/441ab34eacd7e67bc62f9c48bd7f0fe25cc68c58), Closes [#2509](https://github.com/GeekyAnts/NativeBase/issues/2509)
* **Button:** Fixed nested array style. PR [#2511](https://github.com/GeekyAnts/NativeBase/pull/2511). Commit [b4c90d9](https://github.com/GeekyAnts/NativeBase/commit/b4c90d9654e9f66ec5c344e1bcbf008e4dbaf29e), Closes [#2419](https://github.com/GeekyAnts/NativeBase/issues/2419)
* **Fab:** Fixed Fab syntax bugs. PR [#2577](https://github.com/GeekyAnts/NativeBase/pull/2577). Commit [276f778](https://github.com/GeekyAnts/NativeBase/commit/276f7786d3f2e165c83b8957bd529a550ebe3de3)


34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,39 @@ react-native link
You've successfully setup [NativeBase](https://nativebase.io/) with your [React Native](https://facebook.github.io/react-native/) app. Your React Native app is now all set to run on iOS and Android simulator.


**b. Setup with CRNA**
**b. Setup with Expo**

*Create React Native project using the CRNA cli.* <br />
CRNA helps you make React Native apps with no build configuration. Create React App works on macOS, Windows, and Linux. <br />
Refer this link for additional information [CRNA](https://github.com/react-community/create-react-native-app)
Expo helps you make React Native apps with no build configuration. It works on macOS, Windows, and Linux. <br />
Refer this link for additional information on [Expo](https://docs.expo.io/)

*Install NativeBase*
```js
npm install native-base --save
```
*Install @expo/vector-icons*
```js
npm install @expo/vector-icons --save
```

<br />

**Note** <br />
[NativeBase](https://nativebase.io/) uses some custom fonts that can be loaded using **loadAsync** function. Check out [this](https://docs.expo.io/versions/latest/sdk/font#expofontloadasyncobject) expo link.
[NativeBase](https://nativebase.io/) uses some custom fonts that can be loaded using **Font.loadAsync**. Check out the [Expo Font documentation](https://docs.expo.io/versions/latest/sdk/font/).
<br />
Syntax <br />
```js
async componentWillMount() {
await Expo.Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
'Ionicons': require('@expo/vector-icons/fonts/Ionicons.ttf'),
});
// At the top of your file
import { Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';

// Later on in your component
async componentDidMount() {
await Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
...Ionicons.font,
});
}
```
<br />

Check out the [KitchenSink](https://expo.io/@geekyants/nativebasekitchensink) with CRNA for an example of the implementation.<br />
Check out the [KitchenSink](https://expo.io/@geekyants/nativebasekitchensink) with Expo for an example of the implementation.<br />
Find the [KitchenSink repo here](https://github.com/GeekyAnts/NativeBase-KitchenSink/tree/CRNA)

**c. Setup with ignite-native-base-boilerplate**
Expand Down

0 comments on commit 571ea1e

Please sign in to comment.