Skip to content

Commit 8965f11

Browse files
sreejithrFacebook Github Bot
authored andcommitted
Included NativeAnimation module on iOS in the starter project
Summary: Fixes #10638. Added NativeAnimation library to the starter project iOS generator. Passing `useNativeDriver: true` to `Animated` config will enable the app to tap into the native code for animations. **Test plan** Init a RN project and animate an element. Enable native driver as follows: ``` Animated.timing( this.state.value, { toValue: 300, // some value useNativeDriver: true } ).start(); ``` Earlier, this used to crash. Closes #10783 Differential Revision: D4159386 Pulled By: mkonicek fbshipit-source-id: 993481a31b4446eab24ef4ee35ae1941d7a7aae9
1 parent f25e422 commit 8965f11

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

local-cli/generator-ios/templates/xcodeproj/project.pbxproj

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2323
140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
2424
146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25+
5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
2526
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
2627
/* End PBXBuildFile section */
2728

@@ -89,6 +90,20 @@
8990
remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
9091
remoteInfo = React;
9192
};
93+
5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
94+
isa = PBXContainerItemProxy;
95+
containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
96+
proxyType = 2;
97+
remoteGlobalIDString = 134814201AA4EA6300B7C361;
98+
remoteInfo = RCTAnimation;
99+
};
100+
5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
101+
isa = PBXContainerItemProxy;
102+
containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
103+
proxyType = 2;
104+
remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
105+
remoteInfo = "RCTAnimation-tvOS";
106+
};
92107
78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
93108
isa = PBXContainerItemProxy;
94109
containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
@@ -125,6 +140,7 @@
125140
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = <%= name %>/Info.plist; sourceTree = "<group>"; };
126141
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = <%= name %>/main.m; sourceTree = "<group>"; };
127142
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../node_modules/react-native/React/React.xcodeproj; sourceTree = "<group>"; };
143+
5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = ../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj; sourceTree = "<group>"; };
128144
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = "<group>"; };
129145
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = "<group>"; };
130146
/* End PBXFileReference section */
@@ -142,6 +158,7 @@
142158
isa = PBXFrameworksBuildPhase;
143159
buildActionMask = 2147483647;
144160
files = (
161+
5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
145162
146834051AC3E58100842450 /* libReact.a in Frameworks */,
146163
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
147164
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
@@ -253,6 +270,15 @@
253270
name = Products;
254271
sourceTree = "<group>";
255272
};
273+
5E91572E1DD0AC6500FF2AA8 /* Products */ = {
274+
isa = PBXGroup;
275+
children = (
276+
5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
277+
5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */,
278+
);
279+
name = Products;
280+
sourceTree = "<group>";
281+
};
256282
78C398B11ACF4ADC00677621 /* Products */ = {
257283
isa = PBXGroup;
258284
children = (
@@ -264,6 +290,7 @@
264290
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
265291
isa = PBXGroup;
266292
children = (
293+
5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
267294
146833FF1AC3E56700842450 /* React.xcodeproj */,
268295
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
269296
00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
@@ -377,6 +404,10 @@
377404
ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
378405
ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
379406
},
407+
{
408+
ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
409+
ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
410+
},
380411
{
381412
ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
382413
ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
@@ -479,6 +510,20 @@
479510
remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
480511
sourceTree = BUILT_PRODUCTS_DIR;
481512
};
513+
5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
514+
isa = PBXReferenceProxy;
515+
fileType = archive.ar;
516+
path = libRCTAnimation.a;
517+
remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
518+
sourceTree = BUILT_PRODUCTS_DIR;
519+
};
520+
5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = {
521+
isa = PBXReferenceProxy;
522+
fileType = archive.ar;
523+
path = "libRCTAnimation-tvOS.a";
524+
remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
525+
sourceTree = BUILT_PRODUCTS_DIR;
526+
};
482527
78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
483528
isa = PBXReferenceProxy;
484529
fileType = archive.ar;

0 commit comments

Comments
 (0)