Commit Graph

529 Commits

Author SHA1 Message Date
Satyajit Sahoo
41cb7165dd fix: StatusBar.currentHeight is Android-only 2018-09-21 13:55:06 +02:00
Grzegorz Gawrysiak
f145b98eab fix: Remove style prop from touchable (#550) 2018-09-20 12:45:25 +02:00
Tomasz Czajęcki
81b0177f0b docs: fix wrong URL to 'getting started' (#545)
I've noticed that link to the _getting started_ page in the docs seems to not working as expected since `*.html` extension is added anyway and it makes the link broken:
`https://callstack.github.io/react-native-paper/getting-started.html.html`.

### Motivation

The documentation is important part of the library and should be working properly.

### Test plan

Enter `/docs`, install using `yarn` and run it with `yarn start`.

> **NOTE:** _the current version works on localhost and breaks only in the prod env. Suggested change will probably work in both, but needs to be verified by someone who knows the deployment process._
2018-09-13 12:52:07 +02:00
Antonio Moreno Valls
241ddb3e8c docs: update RadioButton docs with new version 2.0.1 (#542)
### Motivation

Update documentation with new version `2.0.1` of `react-native-paper`. RadioButton props are quite different from version 1 to 2, so docs needed an update.
### Test plan

See docs.
2018-09-11 17:18:09 +02:00
Satyajit Sahoo
7b27b7cde7 chore: release v2.0.1 v2.0.1 2018-09-05 11:02:21 +02:00
Satyajit Sahoo
70f37b8785 fix: get label's background color from backgroundColor style of input 2018-09-04 19:59:40 +02:00
Satyajit Sahoo
b82f183178 docs: add more screenshots 2018-09-04 19:59:40 +02:00
Dawid
6afc38e8b1 fix: fix issue with sibling components being clipped. fixes #527 2018-09-04 16:19:08 +02:00
Satyajit Sahoo
abb71cb008 chore: upgrade component-docs 2018-09-04 15:34:21 +02:00
Satyajit Sahoo
2d7f50ce08 BREAKING: rename tintColor to color in bottom navigation 2018-09-04 15:00:53 +02:00
Satyajit Sahoo
137124da85 feat: pass color prop to left and right items 2018-09-04 14:54:46 +02:00
Satyajit Sahoo
6785992d8f docs: improve examples 2018-09-04 13:48:30 +02:00
Satyajit Sahoo
0da377684a chore: wrap dialogs in example with portal 2018-09-04 13:16:43 +02:00
Satyajit Sahoo
1b6e652e7f fix: fix dismissable prop of modal which broke in 7b0cd50 2018-09-04 13:11:15 +02:00
Satyajit Sahoo
68ff8e48a2 docs: remove outdated slack link 2018-09-03 22:09:13 +02:00
Satyajit Sahoo
f1522237ba docs: update examples to be runnable 2018-09-03 17:20:53 +02:00
Satyajit Sahoo
06f929bd5c BREAKING: change left and right props to render callbacks 2018-09-03 17:04:58 +02:00
Satyajit Sahoo
6cc83d2be2 docs: add link to try examples on snack 2018-09-03 13:20:41 +02:00
Satyajit Sahoo
389163200c fix: remove flex: 1 from input, it messes up height 2018-09-03 00:06:09 +02:00
Satyajit Sahoo
00361a063c chore: release v2.0.0-alpha.9 v2.0.0-alpha.9 2018-09-02 21:13:27 +02:00
Satyajit Sahoo
e3ee3a28bf docs: update link to the snack in README 2018-09-02 20:46:07 +02:00
Satyajit Sahoo
3128ee7be8 chore: update branding in the documentation 2018-09-02 20:32:50 +02:00
Satyajit Sahoo
d9e1739fd0 chore: also build docs for 1.0 2018-09-02 20:25:11 +02:00
Satyajit Sahoo
61c6fef264 BREAKING: replace ListSection.* and DrawerSection.* with List.* and Drawer.* (#524) 2018-09-02 03:46:33 +02:00
Satyajit Sahoo
f6e42f363c chore: upgrade component-docs 2018-09-02 03:41:27 +02:00
Satyajit Sahoo
27c196fad2 BREAKING: replace icon and avatar props of ListItem with left and right
Fixes #365
2018-09-02 03:00:12 +02:00
Satyajit Sahoo
4de442d670 chore: fix example app 2018-09-01 14:08:09 +02:00
Satyajit Sahoo
e0086991a7 chore: release v2.0.0-alpha.8 v2.0.0-alpha.8 2018-09-01 14:01:10 +02:00
Lucas Vieira
a25b33a7e6 docs: add onDismiss to Modal Usage docs (#489) 2018-09-01 12:58:54 +02:00
Travis Nuttall
a44a679987 docs: fix link to platform adaptation guidelines (#479) 2018-09-01 12:57:21 +02:00
Lawrence Cheuk
4fd0442482 fix: fixed android flash crash when subtitle =' ' (empty string) (#469)
reference: https://github.com/wix/react-native-navigation/issues/2892
in short, javascript  A && B syntax will return A if A is false. if A is empty string, it will return empty string (which is false if evaluated as boolean) this most of the time works but not here. {A && `<Text>sth</Text>`}, will return "" when A is empty string. This have no problem in iPhone, but returning an empty string to rn component other that` <Text> `will crash in android. The fatal error message can only be viewed using android device monitor or logcat, no message will show in console (as it is a flash crash).
To reproduce, put an empty string in subtitle. the double !! first turn empty string '' to true and then false. return false or null is save within JSX



07-26 21:07:41.735: E/AndroidRuntime(16154): java.lang.RuntimeException: abi26_0_0.com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 1472
07-26 21:07:41.735: E/AndroidRuntime(16154):  detail: View tag:1479
07-26 21:07:41.735: E/AndroidRuntime(16154):   children(2): [
07-26 21:07:41.735: E/AndroidRuntime(16154): 1468,1470,
07-26 21:07:41.735: E/AndroidRuntime(16154):  ],
07-26 21:07:41.735: E/AndroidRuntime(16154):   viewsToAdd(1): [
07-26 21:07:41.735: E/AndroidRuntime(16154): [2,1472],
07-26 21:07:41.735: E/AndroidRuntime(16154):  ],
07-26 21:07:41.735: E/AndroidRuntime(16154): 	at abi26_0_0.com.facebook.react.bridge.ReactContext.handleException(ReactContext.java:313)
07-26 21:07:41.735: E/AndroidRuntime(16154): 	at abi26_0_0.com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:33)

<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Motivation

<!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? -->

### Test plan

<!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->
2018-09-01 12:57:07 +02:00
Max
7d11a8ef07 fix: pass rest props into button (#488)
I had the same issue described in #477 where I need to pass testID and/or accessibilityLabel to buttons to find them in e2e tests.
The same behaviour is implemented in other components such as [FAB](https://github.com/callstack/react-native-paper/blob/master/src/components/FAB.js#L97)

Create a button and pass a testID
```
function testID(id) {
  return Platform.OS === 'android' ? { accessible: true, accessibilityLabel: id } : { testID: id }
}

<Button
  {...testID('skip-button')}
  onPress={async () => {
    // ...
  }}
>
  Skip
</Button>
```

This works now in appium tests with wd
```
const skipButton = await client.elementByAccessibilityId('skip-button')
await skipButton.click()
```
2018-09-01 12:56:27 +02:00
Gabriel Rubens
da9abc48ba docs: minor english fix in snackbar actions doc (#482) 2018-09-01 12:55:14 +02:00
Kacper
0e7d0cd88d BREAKING: TextInput RTL support (#499)
- [x] - [Working RTL](https://i.imgur.com/sXYWKZi.png)
- [x] - [Working LTR](https://i.imgur.com/SjV0k8Z.png)
2018-09-01 12:50:02 +02:00
iyad
ce97d1558b chore: add RTL toggle to example app. closes #503 2018-09-01 02:00:03 +02:00
Satyajit Sahoo
0c98a1eecb feat: use new accessibility APIs
http://facebook.github.io/react-native/blog/2018/08/13/react-native-accessibility-updates
2018-09-01 01:32:28 +02:00
Thanos Korakas
8b9176b44b feat: add style prop to FAB group action items. closes #475 2018-09-01 01:17:00 +02:00
Julian Hundeloh
89db7c14ab feat: disabled FAB. closes #445 2018-09-01 01:06:36 +02:00
Satyajit Sahoo
f31f25ec02 Revert "fix: FAB elevation to match material design (#497)"
This reverts commit 640c7dda1d.
2018-09-01 01:04:36 +02:00
Julian Hundeloh
3b09171aff BREAKING: add status prop to checkbox and radio 2018-09-01 00:42:22 +02:00
Satyajit Sahoo
f1cde8a3fc BREAKING: TextInput redesign (#522) 2018-09-01 00:31:40 +02:00
KevinG
13140943ca fix: Make desktop builds runnable by adding required files (#515)
* Disabled SnackBar content rendering when SnackBar is not visible

* Added windows and macOS ProgressBarComponents so that the build would not fail
2018-08-31 12:44:35 +02:00
Iyad Thayyil
4a7d2e6466 fix: broken menu button of example app (#510)
<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Motivation

<!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? -->

### Test plan

<!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->
2018-08-29 11:43:28 +02:00
Ferran Negre
c63f9dba78 fix: Snapshot tests 2018-08-29 09:56:34 +02:00
Julian Hundeloh
206c1b39a3 feat: allow themeable backdrop (#507) 2018-08-28 12:17:22 +02:00
Julian Hundeloh
33cbd34682 fix: justify content centered in Modals (#506)
Since #491 the content is not centered automatically anymore because the children take up 100% and `justifyContent` on the parent container has no effect.
2018-08-27 10:45:39 +02:00
KevinG
eaf684a504 Disabled SnackBar content rendering when SnackBar is not visible (#502) 2018-08-24 08:24:45 +02:00
Dawid
e9236b355c fix: set proper elevation for Card and decease a bit animation time. (#498) 2018-08-23 12:11:08 +02:00
Luís
640c7dda1d fix: FAB elevation to match material design (#497) 2018-08-21 13:18:28 +02:00
Dawid
141142caa9 feat: fix issue with card showing above dialog. (#496) 2018-08-17 15:06:15 +02:00