Scott Kyle
eb4ac0000b
Efficient React ListView for Realm collections
...
This component is fully backwards compatible with the original React ListView, but is compatible with Realm Results and List objects to use their snapshot functionality along with more efficiently checking if each row should update.
2016-01-21 11:41:38 -08:00
Scott Kyle
58ef90dc53
Only call size() when actually needed
...
This would unfortunately result in adverse performance side effects because calling size() can be expensive.
2016-01-21 11:41:38 -08:00
Ari Lazier
a0145df5e4
Merge pull request #202 from realm/sk-example-update
...
Update ReactExample Xcode Project
2016-01-21 07:28:59 -08:00
Scott Kyle
1bb335c587
Merge pull request #197 from realm/sk-react-native-0.18
...
Update React Tests to support React Native 0.18
2016-01-19 15:12:51 -08:00
Scott Kyle
92df9bff8c
Update to React Native 0.18.0 official release
2016-01-18 23:01:14 -08:00
Scott Kyle
c488fecbc2
Update ReactExample to use right JS build
...
For the simulator it will use the packager, but on device it will use the bundled JS build.
2016-01-15 02:02:43 -08:00
Scott Kyle
804a980d93
Update ReactExample iOS project to latest template
...
It now will bundle the JS so it can be run on device.
2016-01-15 01:51:59 -08:00
Scott Kyle
e4866c5560
Update ReactExample Xcode project
...
Added libReact as a target dependency since that seemed to workaround a very weird build issue that would come and go.
2016-01-15 01:33:34 -08:00
Scott Kyle
b82997efc0
Fix typo in README
2016-01-14 15:23:17 -08:00
Scott Kyle
bc77077b13
Merge branch 'sk-schema-api'
...
* sk-schema-api:
Improve clarity of schema parsing and serialization
Add test that checks schema validation
Update README with new Schema API
Cleanup some code and comments to make it consistent
Convert tests to create objects with property objects
Update example apps with new schema API
Remove confusion between propTypes and objectTypes
Simplify object schema info returned from RPC
RPC now keeps object keys in the same order
Change schema API to take properties as an object
Add method to clear mutation listeners in RPC client
Plug small leak from not releasing a JSStringRef
Make RJSStringForValue use consistent exception style
Improve error messages inside RJSUtil
2016-01-14 15:13:33 -08:00
Scott Kyle
1922125ab0
Improve clarity of schema parsing and serialization
2016-01-13 14:53:39 -08:00
Scott Kyle
04efd77940
Merge pull request #198 from realm/sk-error-message
...
Error message when RealmReact framework is missing
2016-01-12 17:08:43 -08:00
Scott Kyle
04ee234578
Improve clarity of addListenerForEvent:hander:
2016-01-12 17:07:48 -08:00
Karson Miller
e499e58b37
Merge pull request #200 from realm/km-md-conduct
...
Add Contributor Code of Conduct to all repos
2016-01-12 14:45:49 -08:00
Karson Miller
43d3eccb36
Add code of conduct
2016-01-12 12:06:01 -08:00
Scott Kyle
7202994482
Add comments to explain checking for userAgent
2016-01-08 15:54:30 -08:00
Scott Kyle
334e646d7b
Error message when RealmReact framework is missing
...
Fixes #190
2016-01-07 15:18:27 -08:00
Scott Kyle
d7f80e22c8
Update React Tests to support React Native 0.18
...
We had to shift to using an event-based architecture to communicate with the page from native code.
2016-01-07 14:31:04 -08:00
Scott Kyle
c34990759d
Add test that checks schema validation
2016-01-05 13:54:03 -08:00
Scott Kyle
2a7c336ba9
Update README with new Schema API
2016-01-05 13:54:03 -08:00
Scott Kyle
676849a338
Cleanup some code and comments to make it consistent
2016-01-05 13:54:03 -08:00
Scott Kyle
9be1331dbf
Convert tests to create objects with property objects
...
This makes it more readable and will be the preferred syntax in the documentation (and is much less likely to be deprecated in the future!).
2016-01-05 13:54:03 -08:00
Scott Kyle
09752846e5
Update example apps with new schema API
2016-01-05 13:54:03 -08:00
Scott Kyle
15052985f1
Remove confusion between propTypes and objectTypes
...
The RPC layer now only speaks in objectTypes, since they don't always equate to propTypes. We were overloading the use of propTypes for no good purpose.
2016-01-05 13:53:54 -08:00
Scott Kyle
36ffc6c77c
Simplify object schema info returned from RPC
...
Only the property names are needed.
2016-01-05 13:40:57 -08:00
Scott Kyle
c928ab716e
RPC now keeps object keys in the same order
...
Maintaining insertion order when passing objects through the RPC is essential to make the new schema API work.
2016-01-05 13:40:57 -08:00
Scott Kyle
43e14093cc
Change schema API to take properties as an object
...
The keys are names of the properties, which is more natural in JS, but will cause issues with ability to create objects where arrays of values. This feature will be removed in a subsequent commit.
2016-01-05 13:40:57 -08:00
Scott Kyle
358e5dacf3
Add method to clear mutation listeners in RPC client
2016-01-05 13:40:53 -08:00
Scott Kyle
e86dc94ee9
Plug small leak from not releasing a JSStringRef
2016-01-05 13:30:27 -08:00
Scott Kyle
213c3d832f
Make RJSStringForValue use consistent exception style
2016-01-05 13:30:27 -08:00
Scott Kyle
f5047af3bc
Improve error messages inside RJSUtil
2016-01-05 13:30:27 -08:00
Scott Kyle
381dbbe7ba
Merge branch 'sk-npm'
...
* sk-npm:
Add ability to publish NPM module to git
Move RealmJS.mm to correct location
2016-01-05 13:25:20 -08:00
Scott Kyle
2bfedc5d8a
Merge branch 'sk-project-cleanup'
...
* sk-project-cleanup:
Fix for failing React tests
Rename JS test files to be consistent
Cleanup and fix resolving JS test files
Cleanup source groups in Xcode project
Move RealmJS.mm to correct location
2016-01-05 13:19:02 -08:00
Scott Kyle
51f9bbcda4
Merge branch 'sk-snapshot-results'
...
* sk-snapshot-results:
Explicitly check if row is attached
Add methods to create snapshot of List and Results
Update to Realm Core 0.95.5
2016-01-05 13:16:27 -08:00
Ari Lazier
5b113d23b8
Merge pull request #194 from realm/al-os
...
Merge latest object store changes
2016-01-05 08:04:29 -08:00
Ari Lazier
518133e769
bdash pr fixes
2016-01-04 18:13:09 -08:00
Ari Lazier
24be3ab825
remove unnedded constructors/destructor
2016-01-04 16:51:51 -08:00
Ari Lazier
3e45625748
pr fixes
2016-01-04 16:37:07 -08:00
Ari Lazier
4c7d6d8b2f
remove unnecessary const cast
2016-01-04 16:27:37 -08:00
Ari Lazier
d964c77d2d
store ObjectSchema as a pointer rather than a reference
2016-01-04 16:21:28 -08:00
Scott Kyle
a9b9e479cf
Explicitly check if row is attached
2016-01-04 16:17:28 -08:00
Ari Lazier
df901c636f
store ObjectSchema as a pointer rather than a reference
2016-01-04 16:04:01 -08:00
Ari Lazier
aa5e1bef7d
remove invalid usage of const Schema
2016-01-04 15:54:03 -08:00
Ari Lazier
148abd4b7b
merge latest object store changes
2016-01-04 15:42:32 -08:00
Scott Kyle
632f9d737e
Add methods to create snapshot of List and Results
...
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00
Scott Kyle
602613b992
Update to Realm Core 0.95.5
2015-12-30 16:53:26 -08:00
Scott Kyle
3739fab57f
Fix for failing React tests
...
Since the JS test modules have been renamed to have consistent naming, we add a method to actually run the test methods to use our existing abstraction.
2015-12-30 16:47:16 -08:00
Scott Kyle
b3a0627a51
Rename JS test files to be consistent
2015-12-29 14:56:38 -08:00
Scott Kyle
6776eef6c0
Cleanup and fix resolving JS test files
...
The whole lib folder is now copied into the test bundle and the correct path to where a failure occurred is now properly resolved.
2015-12-29 14:55:20 -08:00
Scott Kyle
2f39e73e77
Cleanup source groups in Xcode project
2015-12-29 14:55:20 -08:00