8
8
9
9
root moduleName : react - native - alice - bobbi
10
10
name : alice - bobbi
11
- prefix :
11
+ prefix : ABC
12
12
modulePrefix : react - native
13
13
packageIdentifier : com .alicebits
14
14
platforms : android ,ios
@@ -107,10 +107,10 @@ Array [
107
107
" ensureDir" : " react-native-alice-bobbi/ios/" ,
108
108
} ,
109
109
Object {
110
- " ensureDir" : " react-native-alice-bobbi/ios/AliceBobbi .xcworkspace/" ,
110
+ " ensureDir" : " react-native-alice-bobbi/ios/ABCAliceBobbi .xcworkspace/" ,
111
111
} ,
112
112
Object {
113
- " ensureDir" : " react-native-alice-bobbi/ios/AliceBobbi .xcodeproj/" ,
113
+ " ensureDir" : " react-native-alice-bobbi/ios/ABCAliceBobbi .xcodeproj/" ,
114
114
} ,
115
115
Object {
116
116
" outputFileName" : " react-native-alice-bobbi/README.md" ,
@@ -130,15 +130,15 @@ Array [
130
130
#### iOS
131
131
132
132
1. In XCode, in the project navigator, right click \` Libraries\` ➜ \` Add Files to [your project's name]\`
133
- 2. Go to \` node_modules\` ➜ \` react-native-alice-bobbi\` and add \` AliceBobbi .xcodeproj\`
134
- 3. In XCode, in the project navigator, select your project. Add \` libAliceBobbi .a\` to your project's \` Build Phases\` ➜ \` Link Binary With Libraries\`
133
+ 2. Go to \` node_modules\` ➜ \` react-native-alice-bobbi\` and add \` ABCAliceBobbi .xcodeproj\`
134
+ 3. In XCode, in the project navigator, select your project. Add \` libABCAliceBobbi .a\` to your project's \` Build Phases\` ➜ \` Link Binary With Libraries\`
135
135
4. Run your project (\` Cmd+R\` )<
136
136
137
137
#### Android
138
138
139
139
1. Open up \` android/app/src/main/java/[...]/MainApplication.java\`
140
- - Add \` import com.alicebits.AliceBobbiPackage ;\` to the imports at the top of the file
141
- - Add \` new AliceBobbiPackage ()\` to the list returned by the \` getPackages()\` method
140
+ - Add \` import com.alicebits.ABCAliceBobbiPackage ;\` to the imports at the top of the file
141
+ - Add \` new ABCAliceBobbiPackage ()\` to the list returned by the \` getPackages()\` method
142
142
2. Append the following lines to \` android/settings.gradle\` :
143
143
\`\`\`
144
144
include ':react-native-alice-bobbi'
@@ -152,10 +152,10 @@ Array [
152
152
153
153
## Usage
154
154
\`\`\` javascript
155
- import AliceBobbi from 'react-native-alice-bobbi';
155
+ import ABCAliceBobbi from 'react-native-alice-bobbi';
156
156
157
157
// TODO: What to do with the module?
158
- AliceBobbi ;
158
+ ABCAliceBobbi ;
159
159
\`\`\`
160
160
",
161
161
},
@@ -200,9 +200,9 @@ AliceBobbi;
200
200
" outputFileName" : " react-native-alice-bobbi/index.js" ,
201
201
" theContent" : " import { NativeModules } from 'react-native';
202
202
203
- const { AliceBobbi } = NativeModules ;
203
+ const { ABCAliceBobbi } = NativeModules ;
204
204
205
- export default AliceBobbi ;
205
+ export default ABCAliceBobbi ;
206
206
" ,
207
207
} ,
208
208
Object {
@@ -401,26 +401,26 @@ afterEvaluate { project ->
401
401
" ,
402
402
} ,
403
403
Object {
404
- " outputFileName" : " react-native-alice-bobbi/android/src/main/java/com/alicebits/AliceBobbiModule .java" ,
404
+ " outputFileName" : " react-native-alice-bobbi/android/src/main/java/com/alicebits/ABCAliceBobbiModule .java" ,
405
405
" theContent" : " package com.alicebits;
406
406
407
407
import com .facebook .react .bridge .ReactApplicationContext ;
408
408
import com .facebook .react .bridge .ReactContextBaseJavaModule ;
409
409
import com .facebook .react .bridge .ReactMethod ;
410
410
import com .facebook .react .bridge .Callback ;
411
411
412
- public class AliceBobbiModule extends ReactContextBaseJavaModule {
412
+ public class ABCAliceBobbiModule extends ReactContextBaseJavaModule {
413
413
414
414
private final ReactApplicationContext reactContext ;
415
415
416
- public AliceBobbiModule (ReactApplicationContext reactContext ) {
416
+ public ABCAliceBobbiModule (ReactApplicationContext reactContext ) {
417
417
super (reactContext );
418
418
this .reactContext = reactContext ;
419
419
}
420
420
421
421
@Override
422
422
public String getName() {
423
- return \\" AliceBobbi \\ " ;
423
+ return \\" ABCAliceBobbi \\ " ;
424
424
}
425
425
426
426
@ReactMethod
@@ -432,7 +432,7 @@ public class AliceBobbiModule extends ReactContextBaseJavaModule {
432
432
" ,
433
433
} ,
434
434
Object {
435
- " outputFileName" : " react-native-alice-bobbi/android/src/main/java/com/alicebits/AliceBobbiPackage .java" ,
435
+ " outputFileName" : " react-native-alice-bobbi/android/src/main/java/com/alicebits/ABCAliceBobbiPackage .java" ,
436
436
" theContent" : " package com.alicebits;
437
437
438
438
import java .util .Arrays ;
@@ -445,10 +445,10 @@ import com.facebook.react.bridge.ReactApplicationContext;
445
445
import com .facebook .react .uimanager .ViewManager ;
446
446
import com .facebook .react .bridge .JavaScriptModule ;
447
447
448
- public class AliceBobbiPackage implements ReactPackage {
448
+ public class ABCAliceBobbiPackage implements ReactPackage {
449
449
@Override
450
450
public List<NativeModule > createNativeModules(ReactApplicationContext reactContext ) {
451
- return Arrays .<NativeModule >asList(new AliceBobbiModule (reactContext));
451
+ return Arrays .<NativeModule >asList(new ABCAliceBobbiModule (reactContext));
452
452
}
453
453
454
454
@Override
@@ -507,20 +507,20 @@ end
507
507
" ,
508
508
},
509
509
Object {
510
- " outputFileName" : " react-native-alice-bobbi/ios/AliceBobbi .h" ,
510
+ " outputFileName" : " react-native-alice-bobbi/ios/ABCAliceBobbi .h" ,
511
511
" theContent" : " #import <React/RCTBridgeModule.h>
512
512
513
- @interface AliceBobbi : NSObject <RCTBridgeModule >
513
+ @interface ABCAliceBobbi : NSObject <RCTBridgeModule >
514
514
515
515
@end
516
516
",
517
517
},
518
518
Object {
519
- " outputFileName" : " react-native-alice-bobbi/ios/AliceBobbi .m" ,
520
- " theContent" : " #import \\ " AliceBobbi .h \\"
519
+ " outputFileName" : " react-native-alice-bobbi/ios/ABCAliceBobbi .m" ,
520
+ " theContent" : " #import \\ " ABCAliceBobbi .h \\"
521
521
522
522
523
- @implementation AliceBobb i
523
+ @implementation ABCAliceBobb i
524
524
525
525
RCT_EXPORT_MODULE ()
526
526
@@ -534,18 +534,18 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
534
534
",
535
535
},
536
536
Object {
537
- " outputFileName" : "react -native -alice -bobbi /ios /AliceBobbi .xcworkspace /contents .xcworkspacedata ",
537
+ " outputFileName" : "react -native -alice -bobbi /ios /ABCAliceBobbi .xcworkspace /contents .xcworkspacedata ",
538
538
" theContent" : "<?xml version = \\" 1.0\\ " encoding = \\" UTF-8\\ " ? >
539
539
<Workspace
540
540
version = \\"1.0\\">
541
541
<FileRef
542
- location = \\"group:AliceBobbi .xcodeproj\\">
542
+ location = \\"group:ABCAliceBobbi .xcodeproj\\">
543
543
</FileRef>
544
544
</Workspace>
545
545
" ,
546
546
},
547
547
Object {
548
- " outputFileName": " react-native-alice-bobbi/ios/AliceBobbi .xcodeproj/project.pbxproj" ,
548
+ " outputFileName": " react-native-alice-bobbi/ios/ABCAliceBobbi .xcodeproj/project.pbxproj" ,
549
549
" theContent" : " // !$*UTF8*$!
550
550
{
551
551
archiveVersion = 1;
@@ -555,7 +555,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
555
555
objects = {
556
556
557
557
/* Begin PBXBuildFile section */
558
- B3E7B58A1CC2AC0600A0062D /* AliceBobbi .m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* AliceBobbi .m */; };
558
+ B3E7B58A1CC2AC0600A0062D /* ABCAliceBobbi .m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* ABCAliceBobbi .m */; };
559
559
/* End PBXBuildFile section */
560
560
561
561
/* Begin PBXCopyFilesBuildPhase section */
@@ -571,9 +571,9 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
571
571
/* End PBXCopyFilesBuildPhase section */
572
572
573
573
/* Begin PBXFileReference section */
574
- 134814201AA4EA6300B7C361 /* libAliceBobbi .a */ = { isa = PBXFileReference ; explicitFileType = archive .ar ; includeInIndex = 0 ; path = libAliceBobbi .a ; sourceTree = BUILT_PRODUCTS_DIR ; } ;
575
- B3E7B5881CC2AC0600A0062D /* AliceBobbi .h */ = { isa = PBXFileReference ; fileEncoding = 4 ; lastKnownFileType = sourcecode .c .h ; path = AliceBobbi .h ; sourceTree = \\" <group>\\ " ; } ;
576
- B3E7B5891CC2AC0600A0062D /* AliceBobbi .m */ = { isa = PBXFileReference ; fileEncoding = 4 ; lastKnownFileType = sourcecode .c .objc ; path = AliceBobbi .m ; sourceTree = \\" <group>\\ " ; } ;
574
+ 134814201AA4EA6300B7C361 /* libABCAliceBobbi .a */ = { isa = PBXFileReference ; explicitFileType = archive .ar ; includeInIndex = 0 ; path = libABCAliceBobbi .a ; sourceTree = BUILT_PRODUCTS_DIR ; } ;
575
+ B3E7B5881CC2AC0600A0062D /* ABCAliceBobbi .h */ = { isa = PBXFileReference ; fileEncoding = 4 ; lastKnownFileType = sourcecode .c .h ; path = ABCAliceBobbi .h ; sourceTree = \\" <group>\\ " ; } ;
576
+ B3E7B5891CC2AC0600A0062D /* ABCAliceBobbi .m */ = { isa = PBXFileReference ; fileEncoding = 4 ; lastKnownFileType = sourcecode .c .objc ; path = ABCAliceBobbi .m ; sourceTree = \\" <group>\\ " ; } ;
577
577
/* End PBXFileReference section */
578
578
579
579
/* Begin PBXFrameworksBuildPhase section */
@@ -590,26 +590,26 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
590
590
134814211AA4EA7D00B7C361 /* Products */ = {
591
591
isa = PBXGroup ;
592
592
children = (
593
- 134814201AA4EA6300B7C361 /* libAliceBobbi .a */ ,
593
+ 134814201AA4EA6300B7C361 /* libABCAliceBobbi .a */ ,
594
594
);
595
595
name = Products ;
596
596
sourceTree = \\" <group>\\ " ;
597
597
} ;
598
598
58B511D21A9E6C8500147676 = {
599
599
isa = PBXGroup ;
600
600
children = (
601
- B3E7B5881CC2AC0600A0062D /* AliceBobbi .h */ ,
602
- B3E7B5891CC2AC0600A0062D /* AliceBobbi .m */ ,
601
+ B3E7B5881CC2AC0600A0062D /* ABCAliceBobbi .h */ ,
602
+ B3E7B5891CC2AC0600A0062D /* ABCAliceBobbi .m */ ,
603
603
134814211AA4EA7D00B7C361 /* Products */ ,
604
604
);
605
605
sourceTree = \\" <group>\\ " ;
606
606
} ;
607
607
/* End PBXGroup section */
608
608
609
609
/* Begin PBXNativeTarget section */
610
- 58B511DA1A9E6C8500147676 /* AliceBobbi */ = {
610
+ 58B511DA1A9E6C8500147676 /* ABCAliceBobbi */ = {
611
611
isa = PBXNativeTarget ;
612
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget \\"AliceBobbi \\" */ ;
612
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget \\"ABCAliceBobbi \\" */ ;
613
613
buildPhases = (
614
614
58B511D71A9E6C8500147676 /* Sources */ ,
615
615
58B511D81A9E6C8500147676 /* Frameworks */ ,
@@ -619,9 +619,9 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
619
619
);
620
620
dependencies = (
621
621
);
622
- name = AliceBobbi ;
622
+ name = ABCAliceBobbi ;
623
623
productName = RCTDataManager ;
624
- productReference = 134814201AA4EA6300B7C361 /* libAliceBobbi .a */ ;
624
+ productReference = 134814201AA4EA6300B7C361 /* libABCAliceBobbi .a */ ;
625
625
productType = \\" com.apple.product-type.library.static\\ " ;
626
626
} ;
627
627
/* End PBXNativeTarget section */
@@ -638,7 +638,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
638
638
};
639
639
} ;
640
640
};
641
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject \\"AliceBobbi \\" */ ;
641
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject \\"ABCAliceBobbi \\" */ ;
642
642
compatibilityVersion = \\"Xcode 3.2\\";
643
643
developmentRegion = English;
644
644
hasScannedForEncodings = 0;
@@ -650,7 +650,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
650
650
projectDirPath = \\"\\";
651
651
projectRoot = \\"\\";
652
652
targets = (
653
- 58B511DA1A9E6C8500147676 /* AliceBobbi */ ,
653
+ 58B511DA1A9E6C8500147676 /* ABCAliceBobbi */ ,
654
654
);
655
655
};
656
656
/* End PBXProject section */
@@ -660,7 +660,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
660
660
isa = PBXSourcesBuildPhase ;
661
661
buildActionMask = 2147483647 ;
662
662
files = (
663
- B3E7B58A1CC2AC0600A0062D /* AliceBobbi .m in Sources */ ,
663
+ B3E7B58A1CC2AC0600A0062D /* ABCAliceBobbi .m in Sources */ ,
664
664
);
665
665
runOnlyForDeploymentPostprocessing = 0 ;
666
666
} ;
@@ -771,7 +771,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
771
771
);
772
772
LIBRARY_SEARCH_PATHS = \\"$(inherited)\\";
773
773
OTHER_LDFLAGS = \\"-ObjC\\";
774
- PRODUCT_NAME = AliceBobbi ;
774
+ PRODUCT_NAME = ABCAliceBobbi ;
775
775
SKIP_INSTALL = YES;
776
776
};
777
777
name = Debug;
@@ -787,15 +787,15 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
787
787
);
788
788
LIBRARY_SEARCH_PATHS = \\"$(inherited)\\";
789
789
OTHER_LDFLAGS = \\"-ObjC\\";
790
- PRODUCT_NAME = AliceBobbi ;
790
+ PRODUCT_NAME = ABCAliceBobbi ;
791
791
SKIP_INSTALL = YES;
792
792
};
793
793
name = Release;
794
794
};
795
795
/* End XCBuildConfiguration section */
796
796
797
797
/* Begin XCConfigurationList section */
798
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject \\"AliceBobbi \\" */ = {
798
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject \\"ABCAliceBobbi \\" */ = {
799
799
isa = XCConfigurationList ;
800
800
buildConfigurations = (
801
801
58B511ED1A9E6C8500147676 /* Debug */ ,
@@ -804,7 +804,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
804
804
defaultConfigurationIsVisible = 0 ;
805
805
defaultConfigurationName = Release ;
806
806
};
807
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget \\"AliceBobbi \\" */ = {
807
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget \\"ABCAliceBobbi \\" */ = {
808
808
isa = XCConfigurationList;
809
809
buildConfigurations = (
810
810
58B511F01A9E6C8500147676 /* Debug */ ,
@@ -966,15 +966,15 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu
966
966
967
967
import React , { Component } from ' react' ;
968
968
import { Platform , StyleSheet , Text , View } from ' react-native' ;
969
- import AliceBobbi from ' react-native-alice-bobbi' ;
969
+ import ABCAliceBobbi from ' react-native-alice-bobbi' ;
970
970
971
971
export default class App extends Component <{}> {
972
972
state = {
973
973
status: ' starting' ,
974
974
message: ' --'
975
975
};
976
976
componentDidMount() {
977
- AliceBobbi .sampleMethod (' Testing' , 123 , (message ) => {
977
+ ABCAliceBobbi .sampleMethod (' Testing' , 123 , (message ) => {
978
978
this .setState ({
979
979
status: ' native callback received' ,
980
980
message
@@ -984,7 +984,7 @@ export default class App extends Component<{}> {
984
984
render() {
985
985
return (
986
986
<View style = { styles .container } >
987
- <Text style = { styles .welcome } >☆AliceBobbi example☆</Text >
987
+ <Text style = { styles .welcome } >☆ABCAliceBobbi example☆</Text >
988
988
<Text style = { styles .instructions } >STATUS: { this .state .status } </Text >
989
989
<Text style = { styles .welcome } >☆NATIVE CALLBACK MESSAGE☆</Text >
990
990
<Text style = { styles .instructions } >{ this .state .message } </Text >
0 commit comments