Skip to content

Commit

Permalink
Merge with conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Murray committed Dec 3, 2021
2 parents 5fa07db + 95cbd34 commit 44ff636
Show file tree
Hide file tree
Showing 196 changed files with 3,547 additions and 2,299 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* [Local Development](#local-development)
* [Running The Tests](#running-the-tests)
* [Debugging](#debugging)
* [Structure of the app](#structure-of-the-app)
* [App Structure and Conventions](#app-structure-and-conventions)
* [Philosophy](#Philosophy)
* [Internationalization](#Internationalization)
* [Deploying](#deploying)
Expand Down Expand Up @@ -124,7 +124,7 @@ Our React Native Android app now uses the `Hermes` JS engine which requires your
---
# App structure and conventions
# App Structure and Conventions
## Onyx
This is a persistent storage solution wrapped in a Pub/Sub library. In general that means:
Expand Down
8 changes: 4 additions & 4 deletions STORYBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ Here's an example story:

```javascript
import React from 'react';
import Button from '../components/Button';
import ExpensifyButton from '../components/ExpensifyButton';

const story = {
// Title field will determine how the story displays in the sidebar
title: 'Components/Button',
component: Button,
title: 'Components/ExpensifyButton',
component: ExpensifyButton,
};

// Optional `args` are passed which determine the props the example component will have
const Template = args => <Button {...args} />;
const Template = args => <ExpensifyButton {...args} />;

// Each story must be exported with a named export
const Default = Template.bind({});
Expand Down
12 changes: 6 additions & 6 deletions STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,16 @@ render() {
// Bad
const UserInfo = ({name, email}) => (
<View>
<Text>Name: {name}</Text>
<Text>Email: {email}</Text>
<ExpensifyText>Name: {name}</ExpensifyText>
<ExpensifyText>Email: {email}</ExpensifyText>
</View>
);
// Good
const UserInfo = props => (
<View>
<Text>Name: {props.name}</Text>
<Text>Email: {props.email}</Text>
<ExpensifyText>Name: {props.name}</ExpensifyText>
<ExpensifyText>Email: {props.email}</ExpensifyText>
</View>
);
```
Expand Down Expand Up @@ -701,9 +701,9 @@ class BComposedComponent extends React.Component
render() {
return (
<AComponent {...props}>
<Text>
<ExpensifyText>
{this.state.whatever}
</Text>
</ExpensifyText>
</AComponent>
)
}
Expand Down
40 changes: 20 additions & 20 deletions STYLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ If we need some minimal set of styling rules applied to a single-use component t
```jsx
// Bad - Since we only use this style once in this component
const TextWithPadding = props => (
<Text style={styles.textWithPadding}>
<ExpensifyText style={styles.textWithPadding}>
{props.children}
</Text>
</ExpensifyText>
);

// Good
const TextWithPadding = props => (
<Text
<ExpensifyText
style={[
styles.p5,
styles.noWrap,
]}
>
{props.children}
</Text>
</ExpensifyText>
);
```

Expand All @@ -46,7 +46,7 @@ Any array of styles associated with a single type of React element that has at l
- If a reusable style has 3 or more modifiers it should be refactored into a component with props to modify the styles e.g.

```jsx
<Button title="Submit" success large />
<ExpensifyButton title="Submit" success large />
```

## Inline Styles
Expand All @@ -56,24 +56,24 @@ Any array of styles associated with a single type of React element that has at l
```jsx
// Bad - Do not use inline styles
const TextWithPadding = props => (
<Text style={{
<ExpensifyText style={{
padding: 10,
whiteSpace: props.shouldWrap ? 'wrap' : 'nowrap',
}}>
{props.children}
</Text>
</ExpensifyText>
);

// Good
const TextWithPadding = props => (
<Text
<ExpensifyText
style={[
styles.p5,
getTextWrapStyle(props.shouldWrap)
]}
>
{props.children}
</Text>
</ExpensifyText>
);
```

Expand All @@ -85,34 +85,34 @@ There are many styles in the `styles.js` file. It is generally a bad practice to
// Bad - Reuses style without generalizing style name
const SettingsScreen = props => (
<View>
<Text style={[styles.settingsScreenText]}>
<ExpensifyText style={[styles.settingsScreenText]}>
Expensify
</Text>
</ExpensifyText>
</View>
);

const SomeOtherScreen = props => (
<View>
<Text style={[styles.settingsScreenText]}>
<ExpensifyText style={[styles.settingsScreenText]}>
New Expensify
</Text>
</ExpensifyText>
</View>
);

// Good
const SettingsScreen = props => (
<View>
<Text style={[styles.defaultScreenText]}>
<ExpensifyText style={[styles.defaultScreenText]}>
Expensify
</Text>
</ExpensifyText>
</View>
);

const SomeOtherScreen = props => (
<View>
<Text style={[styles.defaultScreenText]}>
<ExpensifyText style={[styles.defaultScreenText]}>
New Expensify
</Text>
</ExpensifyText>
</View>
);
```
Expand Down Expand Up @@ -193,7 +193,7 @@ The only time we should allow a component to have a `style` prop with `PropTypes
```jsx
// Good
const CustomText = props => (
<Text style={props.style}>{props.children}</Text>
<ExpensifyText style={props.style}>{props.children}</ExpensifyText>
);

// Good
Expand All @@ -202,14 +202,14 @@ const CustomText = props => {
? props.style
: [props.style];
}(
<Text
<ExpensifyText
style={[
styles.defaultCustomText,
...propsStyle,
]}
>
{props.children}
</Text>
</ExpensifyText>
);
```

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001011701
versionName "1.1.17-1"
versionCode 1001011704
versionName "1.1.17-4"
}
splits {
abi {
Expand Down
15 changes: 15 additions & 0 deletions assets/images/eye-disabled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/images/three-dots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.1.17.1</string>
<string>1.1.17.4</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.17.1</string>
<string>1.1.17.4</string>
</dict>
</plist>
6 changes: 3 additions & 3 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ PODS:
- React-Core
- react-native-image-picker (4.0.3):
- React-Core
- react-native-netinfo (5.9.10):
- react-native-netinfo (7.1.3):
- React-Core
- react-native-pdf (6.2.2):
- React-Core
Expand Down Expand Up @@ -850,7 +850,7 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: 7b423f9e248eae65987838148c36eec1dbfe0b53
FBReactNativeSpec: 3930028959767285f556bd187e13b896deee31fe
FBReactNativeSpec: 884d4cc2b011759361797a4035c47e10099393b5
Firebase: 54cdc8bc9c9b3de54f43dab86e62f5a76b47034f
FirebaseABTesting: c3e48ebf5e7e5c674c5a131c68e941d7921d83dc
FirebaseAnalytics: 4751d6a49598a2b58da678cc07df696bcd809ab9
Expand Down Expand Up @@ -900,7 +900,7 @@ SPEC CHECKSUMS:
react-native-document-picker: 0e3602a4064da040321bafad6848d8b0edcb1d55
react-native-flipper: 169e8ba429b73ad637ce007337ce4b415e783799
react-native-image-picker: 4089335b89b625d4e34d53fb249c48a7a791b3ea
react-native-netinfo: 52cf0ee8342548a485e28f4b09e56b477567244d
react-native-netinfo: 3a61a486f2329f5884753fd5bab21450a535d97c
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
react-native-performance: 8edfa2bbc9a2af4a02f01d342118e413a95145e0
react-native-plaid-link-sdk: dcc247a441571b6e0b9029ab00a30f82e4cfa906
Expand Down
13 changes: 9 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.1.17-1",
"version": "1.1.17-4",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down Expand Up @@ -42,7 +42,7 @@
"@react-native-community/cli": "4.13.1",
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/datetimepicker": "^3.5.2",
"@react-native-community/netinfo": "^5.9.10",
"@react-native-community/netinfo": "^7.1.3",
"@react-native-community/progress-bar-android": "^1.0.4",
"@react-native-community/progress-view": "^1.2.3",
"@react-native-firebase/analytics": "^12.3.0",
Expand Down Expand Up @@ -105,6 +105,7 @@
"react-web-config": "^1.0.0",
"rn-fetch-blob": "^0.12.0",
"save": "^2.4.0",
"smoothscroll-polyfill": "^0.4.4",
"underscore": "^1.13.1",
"urbanairship-react-native": "^11.0.2"
},
Expand Down
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import OnyxProvider from './components/OnyxProvider';
import HTMLEngineProvider from './components/HTMLEngineProvider';
import ComposeProviders from './components/ComposeProviders';
import SafeArea from './components/SafeArea';
import initializeiOSSafariAutoScrollback from './libs/iOSSafariAutoScrollback';

LogBox.ignoreLogs([
// Basically it means that if the app goes in the background and back to foreground on Android,
Expand Down Expand Up @@ -40,4 +41,6 @@ const App = () => (

App.displayName = 'App';

initializeiOSSafariAutoScrollback();

export default App;
Loading

0 comments on commit 44ff636

Please sign in to comment.