Skip to content

Commit 559ec64

Browse files
author
jsdario
committed
Get proof of concept working
1 parent cacd3b2 commit 559ec64

File tree

17 files changed

+38
-29
lines changed

17 files changed

+38
-29
lines changed

App.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ import {
1212
View
1313
} from 'react-native';
1414

15-
const instructions = Platform.select({
16-
ios: 'Press Cmd+R to reload,\n' +
17-
'Cmd+D or shake for dev menu',
18-
android: 'Double tap R on your keyboard to reload,\n' +
19-
'Shake or press menu button for dev menu',
20-
});
21-
2215
export default class App extends Component<{}> {
2316
render() {
2417
return (
@@ -27,10 +20,11 @@ export default class App extends Component<{}> {
2720
Welcome to React Native!
2821
</Text>
2922
<Text style={styles.instructions}>
30-
To get started, edit App.js
23+
To get started, edit App.js and widgetTask.js
3124
</Text>
3225
<Text style={styles.instructions}>
33-
{instructions}
26+
Edit your native code and define the business logic in
27+
javascript
3428
</Text>
3529
</View>
3630
);

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
xmlns:android="http://schemas.android.com/apk/res/android" package="com.androidwidgetpoc" android:versionCode="1" android:versionName="1.0">
33
<uses-permission android:name="android.permission.INTERNET" />
44
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5+
<uses-permission android:name="android.permission.WAKE_LOCK" />
56
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
67
<application android:name=".MainApplication" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
78
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize">

android/app/src/main/java/com/androidwidgetpoc/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public boolean getUseDeveloperSupport() {
2424
protected List<ReactPackage> getPackages() {
2525
return Arrays.<ReactPackage>asList(
2626
new MainReactPackage(),
27-
new BackgroundTimerPackage(),
27+
new BackgroundTimerPackage(),
2828
new BackgroundTaskBridgePackage()
2929
);
3030
}
-20.4 KB
Binary file not shown.
-20.4 KB
Binary file not shown.
-18.7 KB
Binary file not shown.
-22.9 KB
Binary file not shown.
-27.3 KB
Binary file not shown.
-29.8 KB
Binary file not shown.
-18.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)