Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

Commit b6f43cb

Browse files
committed
Format improvements
1 parent d58a27d commit b6f43cb

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

SUMMARY.MD

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
- [[MO] Debug Native iOS Code](/react-native/debugging/debug-native-ios.mo.md)
6464
- [[MO] Debug Javascript on an iOS Device](/react-native/debugging/debug-javascript-ios-device.mo.md)
6565
- [[MO] Debug a React Native WebView](/react-native/debugging/debug-webviews.mo.md)
66+
- [[Standard] What differences between iOS and android should I be aware of as a react-native developer?]((/react-native/debugging/differences-between-ios-and-android.s.md)
6667
- [[MO] Handle gradle dependencies versions clashes](/react-native/debugging/handle-gradle-dependencies-clash.mo.md)
6768
- [[MO] Debug two iOS apps simultaneously](/react-native/debugging/debug-two-ios-apps-simultaneously.mo.md)
6869
- [[MO] Get iOS Logs](/react-native/debugging/get-ios-logs.mo.md)

react-native/debugging/differences-between-ios-and-android.s.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
## What differences between iOS and android should I be aware of as a react-native developer?
1+
# [Standard] What differences between iOS and android should I be aware of as a react-native developer?
22
## ... and when should I double check my feature on both platforms?
33

44
*react-native is awesome because it lets you build both iOS and android apps with the same javascript codebase...*
55

6-
While coding I usually use the iOS simulator only. Most of the time, if the feature works on iOS then it works on android automatically. Of course there are a few exceptions: in this article you will find a non comprehensive list of caveats.
6+
While coding I usually use the iOS simulator only. Most of the time, if the feature works on iOS then it works on android automatically. Of course there are a few exceptions: in this article you will find a non comprehensive list of these exceptions.
77

8+
## Owner: [Pierre-Louis Le Portz](https://github.com/pleportz)
89

9-
### I modified the native code
10+
## I modified the native code
1011

1112
- I added/updated a **font**
1213

@@ -24,11 +25,11 @@ While coding I usually use the iOS simulator only. Most of the time, if the feat
2425

2526
- References: See [How to add a native module](https://github.com/bamlab/dev-standards/blob/master/react-native/setup/add-native-module.mo.md)
2627

27-
### I added a fixed height property to a component
28+
## I added a fixed height property to a component
2829

2930
- Why: Unlike iOS, android sets the default behaviour to the react-native `<View />` component to `overflow: hidden`. Using a fixed height often ends up with cut texts or cut images on android.
3031

31-
### I added shadows to a component
32+
## I added shadows to a component
3233

3334
- Works on iOS / does not on android:
3435

@@ -63,14 +64,14 @@ const styles = {
6364
}
6465
```
6566

66-
### I used react-native's `<TextInput />` component
67+
## I used react-native's `<TextInput />` component
6768

6869
- Why: <TextInput /> does not render identically on android and iOS:
6970

7071
- With android you might need to specify the `underlineColorAndroid` prop (can be set to `"transparent"` for example)
7172
- The vertical alignment of the input text is not the same. This can be solved by using a marginTop that depends on the platform: `marginTop: Platform.OS === 'ios ? ...'`
7273

73-
### I mistakenly added text direcly as a `<View />`'s child
74+
## I mistakenly added text direcly as a `<View />`'s child
7475

7576
- Why: `<View>Hello</View>` does not crash iOS but crashes on android with the following error `Cannot add a child that doesn't have a YogaNode to a parent without a measure function! (Trying to add a 'ReactVirtualTextShadowNode' to a 'NativeViewWrapper')`
7677

@@ -87,7 +88,7 @@ const styles = {
8788
<View>{!!this.props.myText && <Text>this.props.myText</Text>}</View>
8889
```
8990

90-
### I used a javascript function that is not implemented the same way in react-native's javascript interpreters for android and iOS
91+
## I used a javascript function that is not implemented the same way in react-native's javascript interpreters for android and iOS
9192

9293
- Why: As of July 2018, react-native's javascript interpreter for android is a little bit late compared to iOS's. There are a few methods that just won't work with android:
9394

0 commit comments

Comments
 (0)