Skip to content

Commit ff99a96

Browse files
author
Rad Azzouz
committed
Prettify README
1 parent e418119 commit ff99a96

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,36 +85,36 @@ end
8585

8686
8. Go back to the Terminal, `cd ios` then run `pod install`
8787
9. Open `ios/YourApp.xcworkspace` in Xcode: `open ios/YourApp.xcworkspace`
88-
10. Make sure the deployment target is set to 11.0 or higher:
89-
![Deployment Target](screenshots/deployment-target.png)
88+
10. Make sure the deployment target is set to 11.0 or higher:
89+
![Deployment Target](screenshots/deployment-target.png)
9090
11. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
9191
![View Controller-Based Status Bar Appearance](screenshots/view-controller-based-status-bar-appearance.png)
9292

93-
12. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
94-
![Adding PDF](screenshots/adding-pdf.png)
93+
12. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
94+
![Adding PDF](screenshots/adding-pdf.png)
9595
13. Replace the default component from `index.ios.js` with a simple touch area to present the bundled PDF:
9696

9797
```javascript
98-
import React, { Component } from 'react';
98+
import React, { Component } from "react";
9999
import {
100100
AppRegistry,
101101
StyleSheet,
102102
NativeModules,
103103
Text,
104104
TouchableHighlight,
105105
View
106-
} from 'react-native';
106+
} from "react-native";
107107

108108
const PSPDFKit = NativeModules.PSPDFKit;
109109

110-
PSPDFKit.setLicenseKey('INSERT_YOUR_LICENSE_KEY_HERE');
110+
PSPDFKit.setLicenseKey("INSERT_YOUR_LICENSE_KEY_HERE");
111111

112112
// Change 'YourApp' to your app's name.
113113
export default class YourApp extends Component<Props> {
114114
_onPressButton() {
115-
PSPDFKit.present('document.pdf', {})
115+
PSPDFKit.present("document.pdf", {});
116116
}
117-
117+
118118
render() {
119119
return (
120120
<View style={styles.container}>
@@ -129,19 +129,19 @@ export default class YourApp extends Component<Props> {
129129
const styles = StyleSheet.create({
130130
container: {
131131
flex: 1,
132-
justifyContent: 'center',
133-
alignItems: 'center',
134-
backgroundColor: '#F5FCFF',
132+
justifyContent: "center",
133+
alignItems: "center",
134+
backgroundColor: "#F5FCFF"
135135
},
136136
text: {
137137
fontSize: 20,
138-
textAlign: 'center',
139-
margin: 10,
138+
textAlign: "center",
139+
margin: 10
140140
}
141141
});
142142

143143
// Change both 'YourApp's to your app's name.
144-
AppRegistry.registerComponent('YourApp', () => YourApp);
144+
AppRegistry.registerComponent("YourApp", () => YourApp);
145145
```
146146

147147
Your app is now ready to launch. Run the app in Xcode or type `react-native run-ios` in the terminal.

0 commit comments

Comments
 (0)