Skip to content

Commit 820e285

Browse files
author
jayden
committed
init commit
1 parent 0e46623 commit 820e285

File tree

222 files changed

+39535
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+39535
-1
lines changed

.gitignore

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# gitignore contributors: remember to update .npmignore
2+
3+
# OSX
4+
#
5+
.DS_Store
6+
7+
# Xcode
8+
#
9+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
10+
11+
## Build generated
12+
build/
13+
DerivedData
14+
15+
## Various settings
16+
*.pbxuser
17+
!default.pbxuser
18+
*.mode1v3
19+
!default.mode1v3
20+
*.mode2v3
21+
!default.mode2v3
22+
*.perspectivev3
23+
!default.perspectivev3
24+
xcuserdata
25+
26+
## Other
27+
*.xccheckout
28+
*.moved-aside
29+
*.xcuserstate
30+
31+
## Obj-C/Swift specific
32+
*.hmap
33+
*.ipa
34+
35+
# CocoaPods
36+
#
37+
# We recommend against adding the Pods directory to your .gitignore. However
38+
# you should judge for yourself, the pros and cons are mentioned at:
39+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
40+
#
41+
#Pods/
42+
43+
# Carthage
44+
#
45+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
46+
# Carthage/Checkouts
47+
48+
Carthage/Build
49+
50+
### Node
51+
52+
# Logs
53+
logs
54+
*.log
55+
56+
# Runtime data
57+
pids
58+
*.pid
59+
*.seed
60+
61+
# Directory for instrumented libs generated by jscoverage/JSCover
62+
lib-cov
63+
64+
# Coverage directory used by tools like istanbul
65+
coverage
66+
67+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
68+
.grunt
69+
70+
# node-waf configuration
71+
.lock-wscript
72+
73+
# Compiled binary addons (http://nodejs.org/api/addons.html)
74+
build/Release
75+
76+
# Dependency directory
77+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
78+
node_modules
79+
80+
# Xcode
81+
#
82+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
83+
84+
## Build generated
85+
build/
86+
DerivedData
87+
88+
## Various settings
89+
*.pbxuser
90+
!default.pbxuser
91+
*.mode1v3
92+
!default.mode1v3
93+
*.mode2v3
94+
!default.mode2v3
95+
*.perspectivev3
96+
!default.perspectivev3
97+
xcuserdata
98+
99+
## OSX
100+
.DS_Store
101+
102+
## Other
103+
*.xccheckout
104+
*.moved-aside
105+
*.xcuserstate
106+
107+
# Intellij project files
108+
*.iml
109+
*.ipr
110+
*.iws
111+
.idea/
112+
113+
#Gradle
114+
.gradletasknamecache
115+
.gradle/
116+
build/
117+
bin/
118+
119+
# Built application files
120+
*.apk
121+
*.ap_
122+
123+
# Files for the Dalvik VM
124+
*.dex
125+
126+
# Java class files
127+
*.class
128+
129+
# Generated files
130+
bin/
131+
gen/
132+
133+
# Gradle files
134+
.gradle/
135+
build/
136+
*/build/
137+
138+
# Local configuration file (sdk path, etc)
139+
local.properties
140+
141+
# Proguard folder generated by Eclipse
142+
proguard/
143+
144+
# Log Files
145+
*.log
146+
147+
# Android Studio Navigation editor temp files
148+
.navigation/
149+
150+
# Android Studio captures folder
151+
captures/
152+
153+
# Remove after this framework is published on NPM
154+
goby-testing-framework/node_modules
155+
156+
# Windows
157+
windows/.vs/
158+
windows/obj/
159+
160+
#Visual Studio files
161+
*.[Oo]bj
162+
*.user
163+
*.aps
164+
*.pch
165+
*.vspscc
166+
*.vssscc
167+
*_i.c
168+
*_p.c
169+
*.ncb
170+
*.suo
171+
*.tlb
172+
*.tlh
173+
*.bak
174+
*.[Cc]ache
175+
*.ilk
176+
*.log
177+
*.lib
178+
*.sbr
179+
*.sdf
180+
*.opensdf
181+
*.opendb
182+
*.unsuccessfulbuild
183+
ipch/
184+
[Oo]bj/
185+
[Bb]in
186+
[Dd]ebug*/
187+
[Rr]elease*/
188+
Ankh.NoLoad
189+
190+
# RN New Version App Generation
191+
Examples/testapp_rn

.npmignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
24+
# node.js
25+
#
26+
node_modules/
27+
npm-debug.log
28+
29+
# Don't publish example apps
30+
examples/
31+
32+
# Don't publish testing code
33+
bin/
34+
test/
35+
36+
# Remove after this framework is published on NPM
37+
goby-testing-framework/
38+
39+
# Android build artifacts and Android Studio bits
40+
android/app/build
41+
android/local.properties
42+
android/.gradle
43+
android/**/*.iml
44+
android/.idea
45+
46+
47+
# Windows
48+
windows/.vs/
49+
windows/obj/
50+
51+
#Tests
52+
windows/Goby.Net46.Test
53+
54+
#Visual Studio files
55+
*.[Oo]bj
56+
*.user
57+
*.aps
58+
*.pch
59+
*.vspscc
60+
*.vssscc
61+
*_i.c
62+
*_p.c
63+
*.ncb
64+
*.suo
65+
*.tlb
66+
*.tlh
67+
*.bak
68+
*.[Cc]ache
69+
*.ilk
70+
*.log
71+
*.lib
72+
*.sbr
73+
*.sdf
74+
*.opensdf
75+
*.opendb
76+
*.unsuccessfulbuild
77+
ipch/
78+
[Oo]bj/
79+
[Bb]in
80+
[Dd]ebug*/
81+
[Rr]elease*/
82+
Ankh.NoLoad
83+
84+
#NuGet
85+
packages/
86+
*.nupkg

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

AlertAdapter.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React, { Platform } from "react-native";
2+
let { Alert } = React;
3+
4+
if (Platform.OS === "android") {
5+
const { NativeModules: { GobyDialog } } = React;
6+
7+
Alert = {
8+
alert(title, message, buttons) {
9+
if (buttons.length > 2) {
10+
throw "Can only show 2 buttons for Android dialog.";
11+
}
12+
13+
const button1Text = buttons[0] ? buttons[0].text : null,
14+
button2Text = buttons[1] ? buttons[1].text : null;
15+
16+
GobyDialog.showDialog(
17+
title, message, button1Text, button2Text,
18+
(buttonId) => { buttons[buttonId].onPress && buttons[buttonId].onPress(); },
19+
(error) => { throw error; });
20+
}
21+
};
22+
}
23+
24+
module.exports = { Alert };

0 commit comments

Comments
 (0)